Skip to content

Commit

Permalink
Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
0Tech committed Sep 11, 2023
1 parent 2bccf72 commit aaf70fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion x/foundation/client/cli/tx.go
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ func normalizeCensorshipAuthority(option string) string {
func getEnumPrefix(str string) string {
delimiter := "_"
splitted := strings.Split(str, delimiter)
return strings.Join(splitted[:len(splitted) - 1], delimiter) + delimiter
return strings.Join(splitted[:len(splitted)-1], delimiter) + delimiter
}

// VoteOptionFromString returns a VoteOption from a string. It returns an error
Expand Down

0 comments on commit aaf70fe

Please sign in to comment.