Skip to content

Commit

Permalink
run spot less apply
Browse files Browse the repository at this point in the history
Signed-off-by: yuye-aws <[email protected]>
  • Loading branch information
yuye-aws committed Apr 30, 2024
1 parent 18b7936 commit 489acc9
Showing 1 changed file with 2 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -246,17 +246,11 @@ private int getChunkStringCountFromMap(Map<String, Object> sourceAndMetadataMap,
List<Object> sourceObjectList = (List<Object>) sourceObject;
for (Object source : sourceObjectList) {
if (source instanceof Map) {
chunkStringCount += getChunkStringCountFromMap(
(Map<String, Object>) source,
(Map<String, Object>) targetKey
);
chunkStringCount += getChunkStringCountFromMap((Map<String, Object>) source, (Map<String, Object>) targetKey);
}
}
} else if (sourceObject instanceof Map) {
chunkStringCount += getChunkStringCountFromMap(
(Map<String, Object>) sourceObject,
(Map<String, Object>) targetKey
);
chunkStringCount += getChunkStringCountFromMap((Map<String, Object>) sourceObject, (Map<String, Object>) targetKey);
}
} else {
// chunk the object when target key is of leaf type (null, string and list of string)
Expand Down

0 comments on commit 489acc9

Please sign in to comment.