diff options
author | Grail Finder <wohilas@gmail.com> | 2024-11-28 17:57:50 +0300 |
---|---|---|
committer | Grail Finder <wohilas@gmail.com> | 2024-11-28 17:57:50 +0300 |
commit | 34d415c9308f2d089520c2a193cdf8393dcc6b5d (patch) | |
tree | bac545ddb1859f18f7d9d75ef5dd23d8c7d29b90 /storage/storage.go | |
parent | 14d706f94a45ab43c51f9c03abea7b3588c571c7 (diff) |
Feat: add linter
Diffstat (limited to 'storage/storage.go')
-rw-r--r-- | storage/storage.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/storage/storage.go b/storage/storage.go index c863799..66640fd 100644 --- a/storage/storage.go +++ b/storage/storage.go @@ -55,6 +55,7 @@ func (p ProviderSQL) UpsertChat(chat *models.Chat) (*models.Chat, error) { if err != nil { return nil, err } + defer stmt.Close() // Execute the query and scan the result into a new chat object var resp models.Chat err = stmt.Get(&resp, chat) |