Skip to content

Commit

Permalink
fix(trace-diff): prevent trailing dot in the last array element (#256)
Browse files Browse the repository at this point in the history
  • Loading branch information
algomaster99 authored May 28, 2023
1 parent 2d0160f commit 4a432a7
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,10 @@ private Set<String> extractVarVals(String prefix, RuntimeValue valueJo) {

for (int i = 0; i < nestedTypes.size(); i++) {
RuntimeValue nestedObj = nestedTypes.get(i);
String currentPrefix = prefix + "[" + i + "].";
String currentPrefix = prefix + "[" + i + "]";
if (!valueJo.getFields().isEmpty()) {
currentPrefix = currentPrefix + ".";
}
varVals.addAll(extractVarVals(currentPrefix, nestedObj));
}
} else {
Expand Down

0 comments on commit 4a432a7

Please sign in to comment.