mirror of
https://github.com/pagefaultgames/rogueserver.git
synced 2025-04-04 20:17:15 +08:00
Run through formatter
This commit is contained in:
parent
65e7696e7e
commit
a1488f435e
@ -49,10 +49,10 @@ func main() {
|
|||||||
api.Init(mux)
|
api.Init(mux)
|
||||||
|
|
||||||
// start web server
|
// start web server
|
||||||
if !*debug {
|
if *debug {
|
||||||
err = http.Serve(listener, mux)
|
|
||||||
} else {
|
|
||||||
err = http.Serve(listener, debugHandler(mux))
|
err = http.Serve(listener, debugHandler(mux))
|
||||||
|
} else {
|
||||||
|
err = http.Serve(listener, mux)
|
||||||
}
|
}
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Fatalf("failed to create http server or server errored: %s", err)
|
log.Fatalf("failed to create http server or server errored: %s", err)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user