mirror of
https://github.com/Wei-Shaw/sub2api.git
synced 2026-11-20 15:06:36 +00:00
fix: handle errcheck for Rows.Close and resp.Body.Close in sora code
This commit is contained in:
1 parent
7b3df5b807
commit
a4fdc1dc4b
2 files changed
+2
-2
No files matched your search
@@ -90,7 +90,7 @@ func (r *SoraTaskRepository) ListPending(ctx context.Context) ([]*service.SoraTa
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
defer rows.Close()
|
||||
defer func() { _ = rows.Close() }()
|
||||
|
||||
var tasks []*service.SoraTask
|
||||
for rows.Next() {
|
||||
|
||||
Reference in new issue
Block a user