Skip to content

Commit

Permalink
replace hardcoded GT and LT with CommandKeyword enum (#3079)
Browse files Browse the repository at this point in the history
  • Loading branch information
minwoo1999 authored Dec 20, 2024
1 parent c6dab63 commit a751b7c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/main/java/io/lettuce/core/ZAddArgs.java
Original file line number Diff line number Diff line change
Expand Up @@ -182,11 +182,11 @@ public <K, V> void build(CommandArgs<K, V> args) {
}

if (gt) {
args.add("GT");
args.add(GT);
}

if (lt) {
args.add("LT");
args.add(LT);
}

if (ch) {
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/io/lettuce/core/protocol/CommandKeyword.java
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public enum CommandKeyword implements ProtocolKeyword {

MIGRATING, IMPORTING, SAVE, SKIPME, SLAVES, STREAM, STORE, SUM, SEGFAULT, SETUSER, TAKEOVER, TRACKING, TRACKINGINFO, TYPE, UNBLOCK, USERS, USAGE, WEIGHTS, WHOAMI,

WITHMATCHLEN, WITHSCORE, WITHSCORES, WITHVALUES, XOR, XX, YES, INDENT, NEWLINE, SPACE;
WITHMATCHLEN, WITHSCORE, WITHSCORES, WITHVALUES, XOR, XX, YES, INDENT, NEWLINE, SPACE, GT, LT;

public final byte[] bytes;

Expand Down

0 comments on commit a751b7c

Please sign in to comment.