aboutsummaryrefslogtreecommitdiffstats
path: root/web/frontend.go
diff options
context:
space:
mode:
authorAdam Mathes <adam@adammathes.com>2026-02-15 13:48:34 -0800
committerAdam Mathes <adam@adammathes.com>2026-02-15 13:48:34 -0800
commit2327f93098b4278c93055a96224ae82cef60b083 (patch)
tree1a5e647bfa520c108dc7750e34332ad312572bdc /web/frontend.go
parent4c570c223e944a148dc81a4e1ee25d6ab524ae64 (diff)
downloadneko-2327f93098b4278c93055a96224ae82cef60b083.tar.gz
neko-2327f93098b4278c93055a96224ae82cef60b083.tar.bz2
neko-2327f93098b4278c93055a96224ae82cef60b083.zip
Backend: Fix linting issues, improve error handling, and replace magic numbers
Diffstat (limited to 'web/frontend.go')
-rw-r--r--web/frontend.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/web/frontend.go b/web/frontend.go
index 6961ec0..d77c974 100644
--- a/web/frontend.go
+++ b/web/frontend.go
@@ -41,7 +41,7 @@ func ServeFrontend(w http.ResponseWriter, r *http.Request) {
return
}
}
- defer f.Close()
+ defer func() { _ = f.Close() }()
d, err := f.Stat()
if err != nil {