Skip to content

Commit

Permalink
Get Iterable from Map
Browse files Browse the repository at this point in the history
  • Loading branch information
sazzad16 authored Nov 12, 2024
1 parent 918dc5f commit 05ef43a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ 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 (CommandInfo supportedSubCommand : commandInfo.getSubcommands()) {
for (CommandInfo supportedSubCommand : commandInfo.getSubcommands().values()) {
if ((command+subCommand).equalsIgnoreCase(supportedSubCommand.getName())) {
return true;
}
Expand Down

0 comments on commit 05ef43a

Please sign in to comment.