Skip to content

Commit

Permalink
method level variable had the same name as class member. issue #2578
Browse files Browse the repository at this point in the history
  • Loading branch information
j-dimension committed Sep 28, 2024
1 parent 8388a04 commit 8d1e5e2
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -817,9 +817,9 @@ public Map<AssistantConfig, List<AiCapability>> filterCapabilities(String reques
}

// Sort the list of AiCapabilities by name for each AssistantConfig
List<AiCapability> capabilities = filtered.get(config);
if (capabilities != null) {
capabilities.sort(Comparator.comparing(AiCapability::getName));
List<AiCapability> sortedCapabilities = filtered.get(config);
if (sortedCapabilities != null) {
sortedCapabilities.sort(Comparator.comparing(AiCapability::getName));
}
}
}
Expand Down

0 comments on commit 8d1e5e2

Please sign in to comment.