From 426ce8517fc368845cfb22fc1a7687688a8fa98e Mon Sep 17 00:00:00 2001 From: James Cleveland Date: Fri, 24 Nov 2023 14:37:59 +0000 Subject: [PATCH] remove some ugly spaces --- main.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/main.go b/main.go index f6b365d..92c73ab 100644 --- a/main.go +++ b/main.go @@ -58,11 +58,9 @@ func Index(c echo.Context) error { func getEnv(name string, fallback string) string { value, exists := os.LookupEnv(name) - if !exists { value = fallback } - return value } @@ -72,12 +70,10 @@ func main() { if os.Getenv("SPA_MODE") == "1" { e.Static("/assets", "public/assets") - t := &Template{ templates: template.Must(template.ParseFiles("public/index.html")), } e.Renderer = t - e.GET("/*", Index) } else { e.Static("/", "public")