Skip to content

Commit

Permalink
remove redundant conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
asahasrabuddhe committed Oct 21, 2019
1 parent 3bd9978 commit 109b320
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions category.go
Expand Up @@ -15,7 +15,7 @@ func newCommandCategories() CommandCategories {
}

func (c *commandCategories) Less(i, j int) bool {
return lexicographicLess((*c)[i].Name(), (*c)[j].Name() )
return lexicographicLess((*c)[i].Name(), (*c)[j].Name())
}

func (c *commandCategories) Len() int {
Expand All @@ -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
}

Expand Down

0 comments on commit 109b320

Please sign in to comment.