diff --git a/commands/build.go b/commands/build.go index 9a33bdeb695..4bce23fc201 100644 --- a/commands/build.go +++ b/commands/build.go @@ -393,7 +393,6 @@ func checkWarnedFlags(f *pflag.Flag) { switch t { case "flag-warn": logrus.Warn(m[0]) - break } } } diff --git a/commands/util.go b/commands/util.go index 0e19e9b2f92..d4ee40adf0b 100644 --- a/commands/util.go +++ b/commands/util.go @@ -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) }