Skip to content

Commit

Permalink
cmd/command.go: Fixed inverted check.
Browse files Browse the repository at this point in the history
  • Loading branch information
Sandertv committed Nov 27, 2024
1 parent 25264a3 commit 1aafb3a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/cmd/command.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ func New(name, description string, aliases []string, r ...Runnable) Command {
usages := make([]string, len(r))
runnableValues := make([]reflect.Value, len(r))

if len(aliases) > 0 && slices.Index(aliases, name) != -1 {
if len(aliases) > 0 && slices.Index(aliases, name) == -1 {
aliases = append(aliases, name)
}

Expand Down

0 comments on commit 1aafb3a

Please sign in to comment.