From b7ef0943f423688a468c8941b9a218873b8522e5 Mon Sep 17 00:00:00 2001 From: pathmapper Date: Thu, 23 Jul 2020 20:25:24 +0200 Subject: [PATCH] Fix formatting --- maputnik.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/maputnik.go b/maputnik.go index ba96b0bd..0eecee85 100644 --- a/maputnik.go +++ b/maputnik.go @@ -62,10 +62,10 @@ func main() { } staticDir := c.String("static") - if staticDir != "" { - h := http.StripPrefix("/static/", http.FileServer(http.Dir(staticDir))) - router.PathPrefix("/static/").Handler(h) - } + if staticDir != "" { + h := http.StripPrefix("/static/", http.FileServer(http.Dir(staticDir))) + router.PathPrefix("/static/").Handler(h) + } router.PathPrefix("/").Handler(http.StripPrefix("/", gui)) loggedRouter := handlers.LoggingHandler(os.Stdout, router)