Simplify error handling during startup

This commit is contained in:
bronku 2025-03-23 21:58:34 +01:00
parent 969dbfb1aa
commit 4b2fcbc58a
5 changed files with 29 additions and 54 deletions

View file

@ -10,10 +10,7 @@ import (
)
func Run() {
h, err := server.New()
if err != nil {
log.Fatal(err)
}
h := server.New()
defer h.Close()
var handler http.Handler = h