mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-06-11 06:24:04 +00:00
Fix linting errors
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user