diff options
author | Runxi Yu <me@runxiyu.org> | 2025-03-05 09:57:55 +0800 |
---|---|---|
committer | Runxi Yu <me@runxiyu.org> | 2025-03-05 09:58:06 +0800 |
commit | 64f79d9f0f6b7a0cfdad797203d71ad055837210 (patch) | |
tree | 1a17742dd80daf7906c71081782b7a1242d9e400 /resources.go | |
parent | repo/*: Use var instead of := (diff) | |
download | forge-64f79d9f0f6b7a0cfdad797203d71ad055837210.tar.gz forge-64f79d9f0f6b7a0cfdad797203d71ad055837210.tar.zst forge-64f79d9f0f6b7a0cfdad797203d71ad055837210.zip |
*: Replacing more := with var
Diffstat (limited to '')
-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))) |