lib/db: Constant/unused args and return values, double it.Release (#8259)

This commit is contained in:
greatroar
2022-04-27 20:32:44 +02:00
committed by GitHub
parent 49488c0e71
commit d00a30069a
3 changed files with 14 additions and 22 deletions
+1 -4
View File
@@ -825,10 +825,7 @@ func (t readWriteTransaction) removeFromGlobal(gk, keyBuf, folder, device, file
return keyBuf, t.Delete(gk)
}
removedFV, haveRemoved, globalChanged, err := fl.pop(device, file)
if err != nil {
return nil, err
}
removedFV, haveRemoved, globalChanged := fl.pop(device)
if !haveRemoved {
// There is no version for the given device
return keyBuf, nil