Fix shadowed variables.

This commit is contained in:
Andrey Smirnov
2014-03-24 18:39:45 +04:00
parent 5bd5e0a827
commit 140c925079
10 changed files with 49 additions and 38 deletions
+2 -1
View File
@@ -44,8 +44,9 @@ func aptlySnapshotVerify(cmd *commander.Command, args []string) error {
fmt.Errorf("unable to merge sources: %s", err)
}
var pL *debian.PackageList
for i := 1; i < len(snapshots); i++ {
pL, err := debian.NewPackageListFromRefList(snapshots[i].RefList(), packageCollection, context.progress)
pL, err = debian.NewPackageListFromRefList(snapshots[i].RefList(), packageCollection, context.progress)
if err != nil {
fmt.Errorf("unable to load packages: %s", err)
}