mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-05-30 04:20:53 +00:00
Fix shadowed variables.
This commit is contained in:
Vendored
+3
-3
@@ -63,9 +63,9 @@ func NewPackageListFromRefList(reflist *PackageRefList, collection *PackageColle
|
||||
}
|
||||
|
||||
err := reflist.ForEach(func(key []byte) error {
|
||||
p, err := collection.ByKey(key)
|
||||
if err != nil {
|
||||
return fmt.Errorf("unable to load package with key %s: %s", key, err)
|
||||
p, err2 := collection.ByKey(key)
|
||||
if err2 != nil {
|
||||
return fmt.Errorf("unable to load package with key %s: %s", key, err2)
|
||||
}
|
||||
if progress != nil {
|
||||
progress.AddBar(1)
|
||||
|
||||
Reference in New Issue
Block a user