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
@@ -114,6 +114,9 @@ func aptlyMirrorShowJSON(cmd *commander.Command, args []string) error {
if repo.RefList() != nil {
var list *deb.PackageList
list, err = deb.NewPackageListFromRefList(repo.RefList(), context.NewCollectionFactory().PackageCollection(), context.Progress())
if err != nil {
return fmt.Errorf("unable to get package list: %s", err)
}
list.PrepareIndex()
list.ForEachIndexed(func(p *deb.Package) error {