aboutsummaryrefslogtreecommitdiffstats
path: root/internal/importer
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 /internal/importer
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 'internal/importer')
-rw-r--r--internal/importer/importer.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/importer/importer.go b/internal/importer/importer.go
index f74ace1..de5e66c 100644
--- a/internal/importer/importer.go
+++ b/internal/importer/importer.go
@@ -150,7 +150,7 @@ func ImportJSON(filename string) error {
if err != nil {
return err
}
- defer f.Close()
+ defer func() { _ = f.Close() }()
return ImportJSONReader(f)
}