Skip to content

Commit

Permalink
simplified prefix normalization
Browse files Browse the repository at this point in the history
  • Loading branch information
darklynx committed Jun 1, 2022
1 parent 58c3ca5 commit 1c8b962
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ func CreateConfig() *ServerConfig {
}

func normalizePrefix(prefix string) string {
if (len(prefix) > 0) && (prefix[0:1] != "/") {
if (len(prefix) > 0) && (prefix[0] != '/') {
return "/" + prefix
} else {
return prefix
Expand Down

0 comments on commit 1c8b962

Please sign in to comment.