cmd: prefer nil slices over zero-length slices (#19077)
This commit is contained in:
committed by
Péter Szilágyi
parent
e26a119c9b
commit
fa87929a2f
@ -308,7 +308,7 @@ func init() {
|
||||
categorized[flag.String()] = struct{}{}
|
||||
}
|
||||
}
|
||||
uncategorized := []cli.Flag{}
|
||||
var uncategorized []cli.Flag
|
||||
for _, flag := range data.(*cli.App).Flags {
|
||||
if _, ok := categorized[flag.String()]; !ok {
|
||||
if strings.HasPrefix(flag.GetName(), "dashboard") {
|
||||
|
Reference in New Issue
Block a user