aboutsummaryrefslogtreecommitdiff
path: root/resources.go
diff options
context:
space:
mode:
authorRunxi Yu <me@runxiyu.org>2025-03-05 09:57:55 +0800
committerRunxi Yu <me@runxiyu.org>2025-03-05 09:58:06 +0800
commit64f79d9f0f6b7a0cfdad797203d71ad055837210 (patch)
tree1a17742dd80daf7906c71081782b7a1242d9e400 /resources.go
parentrepo/*: Use var instead of := (diff)
downloadforge-64f79d9f0f6b7a0cfdad797203d71ad055837210.tar.gz
forge-64f79d9f0f6b7a0cfdad797203d71ad055837210.tar.zst
forge-64f79d9f0f6b7a0cfdad797203d71ad055837210.zip
*: Replacing more := with var
Diffstat (limited to '')
-rw-r--r--resources.go3
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)))