Skip to content

Commit

Permalink
Fix code smell
Browse files Browse the repository at this point in the history
Signed-off-by: Bilyana Gospodinova <[email protected]>
  • Loading branch information
bilyana-gospodinova committed Nov 5, 2024
1 parent 7b1d58d commit ef676f2
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -79,15 +79,15 @@ public ReadableStates getReadableStates(@Nonnull String serviceName) {
if (serviceStates == null) {
return new EmptyReadableStates();
}
final Map<String, Object> states = new ConcurrentHashMap<>();
final Map<String, Object> data = new ConcurrentHashMap<>();
for (final var entry : serviceStates.entrySet()) {
final var stateName = entry.getKey();
final var state = entry.getValue();
if (state instanceof Map map) {
states.put(stateName, new MapReadableKVState(stateName, map));
data.put(stateName, new MapReadableKVState(stateName, map));
}
}
return new MapReadableStates(states);
return new MapReadableStates(data);
});
}

Expand Down

0 comments on commit ef676f2

Please sign in to comment.