diff options
Diffstat (limited to 'resources.go')
-rw-r--r-- | resources.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/resources.go b/resources.go index 6c3cece..a65e8b7 100644 --- a/resources.go +++ b/resources.go @@ -44,8 +44,7 @@ func load_templates() (err error) { var static_handler http.Handler func init() { - static_fs, err := fs.Sub(resources_fs, "static") - if err != nil { + if static_fs, err := fs.Sub(resources_fs, "static"); err != nil { panic(err) } static_handler = http.StripPrefix("/:/static/", http.FileServer(http.FS(static_fs))) |