diff options
author | Runxi Yu <me@runxiyu.org> | 2025-03-05 10:05:04 +0800 |
---|---|---|
committer | Runxi Yu <me@runxiyu.org> | 2025-03-05 10:05:04 +0800 |
commit | 80492711b4588c10dffa93a57fd9926dc337bbae (patch) | |
tree | 93b6240452b0c274d2f50cb396ae8e441b3ff6ea /resources.go | |
parent | *: Replacing more := with var (diff) | |
download | forge-80492711b4588c10dffa93a57fd9926dc337bbae.tar.gz forge-80492711b4588c10dffa93a57fd9926dc337bbae.tar.zst forge-80492711b4588c10dffa93a57fd9926dc337bbae.zip |
*: Typing fixes
Diffstat (limited to 'resources.go')
-rw-r--r-- | resources.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/resources.go b/resources.go index a65e8b7..6c3cece 100644 --- a/resources.go +++ b/resources.go @@ -44,7 +44,8 @@ func load_templates() (err error) { var static_handler http.Handler func init() { - if static_fs, err := fs.Sub(resources_fs, "static"); err != nil { + static_fs, err := fs.Sub(resources_fs, "static") + if err != nil { panic(err) } static_handler = http.StripPrefix("/:/static/", http.FileServer(http.FS(static_fs))) |