Skip to content

Commit 05ef43a

Browse files
authored
Get Iterable from Map
1 parent 918dc5f commit 05ef43a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/test/java/io/redis/test/utils/EnabledOnCommandRule.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ private boolean isCommandAvailable(Jedis jedisClient, String command, String sub
105105
// If a subCommand is provided, check for the subcommand under this command
106106
if (subCommand != null && !subCommand.isEmpty()) {
107107
// Check if this command supports the provided subcommand
108-
for (CommandInfo supportedSubCommand : commandInfo.getSubcommands()) {
108+
for (CommandInfo supportedSubCommand : commandInfo.getSubcommands().values()) {
109109
if ((command+subCommand).equalsIgnoreCase(supportedSubCommand.getName())) {
110110
return true;
111111
}

0 commit comments

Comments
 (0)