优化代码

This commit is contained in:
GoEdgeLab
2023-08-09 11:17:13 +08:00
parent 9fcf778b40
commit 58256ee22b
4 changed files with 22 additions and 15 deletions

View File

@@ -285,9 +285,6 @@ 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()
}()