mirror of
https://github.com/TeaOSLab/EdgeNode.git
synced 2026-01-04 22:55:48 +08:00
优化代码
This commit is contained in:
@@ -285,6 +285,9 @@ func (this *FileListDB) ListExpiredItems(count int) (hashList []string, err erro
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if rows.Err() != nil {
|
||||
return nil, rows.Err()
|
||||
}
|
||||
defer func() {
|
||||
_ = rows.Close()
|
||||
}()
|
||||
|
||||
Reference in New Issue
Block a user