diff options
| author | Adam Mathes <adam@adammathes.com> | 2026-02-15 13:48:34 -0800 |
|---|---|---|
| committer | Adam Mathes <adam@adammathes.com> | 2026-02-15 13:48:34 -0800 |
| commit | 2327f93098b4278c93055a96224ae82cef60b083 (patch) | |
| tree | 1a5e647bfa520c108dc7750e34332ad312572bdc /models/item | |
| parent | 4c570c223e944a148dc81a4e1ee25d6ab524ae64 (diff) | |
| download | neko-2327f93098b4278c93055a96224ae82cef60b083.tar.gz neko-2327f93098b4278c93055a96224ae82cef60b083.tar.bz2 neko-2327f93098b4278c93055a96224ae82cef60b083.zip | |
Backend: Fix linting issues, improve error handling, and replace magic numbers
Diffstat (limited to 'models/item')
| -rw-r--r-- | models/item/item.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/models/item/item.go b/models/item/item.go index f960c65..dc277a3 100644 --- a/models/item/item.go +++ b/models/item/item.go @@ -194,7 +194,7 @@ func Filter(max_id int64, feed_id int64, category string, unread_only bool, star vlog.Println(err) return nil, err } - defer rows.Close() + defer func() { _ = rows.Close() }() p := filterPolicy() |
