Skip to content

Commit

Permalink
Use CommandInfo for subcommand
Browse files Browse the repository at this point in the history
  • Loading branch information
sazzad16 authored Nov 12, 2024
1 parent d679f01 commit 918dc5f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/test/java/io/redis/test/utils/EnabledOnCommandRule.java
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,8 @@ private boolean isCommandAvailable(Jedis jedisClient, String command, String sub
// If a subCommand is provided, check for the subcommand under this command
if (subCommand != null && !subCommand.isEmpty()) {
// Check if this command supports the provided subcommand
for (String supportedSubCommand : commandInfo.getSubcommands()) {
if (subCommand.equalsIgnoreCase(supportedSubCommand)) {
for (CommandInfo supportedSubCommand : commandInfo.getSubcommands()) {
if ((command+subCommand).equalsIgnoreCase(supportedSubCommand.getName())) {
return true;
}
}
Expand Down

0 comments on commit 918dc5f

Please sign in to comment.