dschneider-pivotal commented on a change in pull request #7354:
URL: https://github.com/apache/geode/pull/7354#discussion_r804026572



##########
File path: 
geode-for-redis/src/main/java/org/apache/geode/redis/internal/commands/RedisCommandType.java
##########
@@ -477,4 +568,10 @@ public RedisResponse executeCommand(Command command,
 
     return commandExecutor.executeCommand(command, executionHandlerContext);
   }
+
+  public static List<RedisCommandType> getCommandsForCategory(Category type) {
+    return Arrays.stream(RedisCommandType.values())
+        .filter(c -> c.category == type && c.category != Category.IGNORED)

Review comment:
       why do you need "&& c.category != IGNORED"? If it is "== type" then it 
would not be IGNORED since "type" would never be IGNORED. 




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to