Skip to content

Commit

Permalink
fix: invalid args order
Browse files Browse the repository at this point in the history
  • Loading branch information
dnjooiopa committed Jun 17, 2023
1 parent 9cbc47a commit 0523492
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rdctx.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ func replacePrefix(keys ...string) []string {
return keys
}
for i, v := range keys {
if strings.HasPrefix(keyPrefix+":", v) {
if strings.HasPrefix(v, keyPrefix+":") {
keys[i] = strings.TrimPrefix(v, keyPrefix+":")
}
}
Expand Down

0 comments on commit 0523492

Please sign in to comment.