mirror of
https://gitea.com/Lydanne/buildx.git
synced 2025-05-29 17:05:46 +08:00
commands: clean up unnecessary code
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
This commit is contained in:
parent
89334a88a9
commit
cc2a879660
@ -393,7 +393,6 @@ func checkWarnedFlags(f *pflag.Flag) {
|
|||||||
switch t {
|
switch t {
|
||||||
case "flag-warn":
|
case "flag-warn":
|
||||||
logrus.Warn(m[0])
|
logrus.Warn(m[0])
|
||||||
break
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -290,9 +290,7 @@ func loadInfoData(ctx context.Context, d *dinfo) error {
|
|||||||
return errors.Wrap(err, "listing workers")
|
return errors.Wrap(err, "listing workers")
|
||||||
}
|
}
|
||||||
for _, w := range workers {
|
for _, w := range workers {
|
||||||
for _, p := range w.Platforms {
|
d.platforms = append(d.platforms, w.Platforms...)
|
||||||
d.platforms = append(d.platforms, p)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
d.platforms = platformutil.Dedupe(d.platforms)
|
d.platforms = platformutil.Dedupe(d.platforms)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user