Skip to content

Commit

Permalink
Fix suggested fixes from SonarCloud
Browse files Browse the repository at this point in the history
  • Loading branch information
robinalfengard committed Feb 13, 2024
1 parent c9106a3 commit 47f6fb3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/org/fungover/haze/HazeDatabase.java
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ public String increaseValue(List<String> inputList) {
String key = inputList.get(1);
try {
if (!database.containsKey(key)) {
return "-ERR no such key\r\n";
return NO_SUCH_KEY_ERROR;
}
String value = database.get(key);
try {
Expand All @@ -199,7 +199,7 @@ public String decreaseValue(List<String> inputList) {
String key = inputList.get(1);
try {
if (!database.containsKey(key)) {
return "-ERR no such key\r\n";
return NO_SUCH_KEY_ERROR;
}
String value = database.get(key);
try {
Expand Down

0 comments on commit 47f6fb3

Please sign in to comment.