From 64f79d9f0f6b7a0cfdad797203d71ad055837210 Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Wed, 5 Mar 2025 09:57:55 +0800 Subject: *: Replacing more := with var --- resources.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'resources.go') 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))) -- cgit v1.2.3