remove redundant conversion
This commit is contained in:
parent
3bd997859c
commit
109b320c05
@ -33,8 +33,8 @@ func (c *commandCategories) AddCommand(category string, command *Command) {
|
||||
return
|
||||
}
|
||||
}
|
||||
newVal := commandCategories(append(*c,
|
||||
&commandCategory{name: category, commands: []*Command{command}}))
|
||||
newVal := append(*c,
|
||||
&commandCategory{name: category, commands: []*Command{command}})
|
||||
*c = newVal
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user