Fix linting errors

This commit is contained in:
Lorenzo Bolla
2022-01-25 14:44:33 +01:00
parent 4cf57ae84d
commit 3775d69a60
7 changed files with 15 additions and 3 deletions
+3
View File
@@ -189,6 +189,9 @@ func aptlyDbCleanup(cmd *commander.Command, args []string) error {
err = toDelete.ForEach(func(ref []byte) error {
return collectionFactory.PackageCollection().DeleteByKey(ref, batch)
})
if err != nil {
return fmt.Errorf("unable to delete by key: %s", err)
}
err = batch.Write()
if err != nil {