remove redundant conversion

This commit is contained in:
Ajitem Sahasrabuddhe 2019-10-21 18:54:21 +05:30
parent 3bd997859c
commit 109b320c05
No known key found for this signature in database
GPG Key ID: 782DEBC01D3967A5

View File

@ -33,8 +33,8 @@ func (c *commandCategories) AddCommand(category string, command *Command) {
return return
} }
} }
newVal := commandCategories(append(*c, newVal := append(*c,
&commandCategory{name: category, commands: []*Command{command}})) &commandCategory{name: category, commands: []*Command{command}})
*c = newVal *c = newVal
} }