Skip to content

Commit

Permalink
Merge pull request #861 from tonistiigi/cleanup
Browse files Browse the repository at this point in the history
commands: clean up unnecessary code
  • Loading branch information
crazy-max authored Nov 23, 2021
2 parents 89334a8 + cc2a879 commit 5c2b9bb
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
1 change: 0 additions & 1 deletion commands/build.go
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,6 @@ func checkWarnedFlags(f *pflag.Flag) {
switch t {
case "flag-warn":
logrus.Warn(m[0])
break
}
}
}
Expand Down
4 changes: 1 addition & 3 deletions commands/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -290,9 +290,7 @@ func loadInfoData(ctx context.Context, d *dinfo) error {
return errors.Wrap(err, "listing workers")
}
for _, w := range workers {
for _, p := range w.Platforms {
d.platforms = append(d.platforms, p)
}
d.platforms = append(d.platforms, w.Platforms...)
}
d.platforms = platformutil.Dedupe(d.platforms)
}
Expand Down

0 comments on commit 5c2b9bb

Please sign in to comment.