Skip to content
This repository has been archived by the owner on Jan 27, 2025. It is now read-only.

Commit

Permalink
Remove non-functional code for finding values in nested arrays.
Browse files Browse the repository at this point in the history
Seems to be currently unused and doesn't do what it's supposed to do.

See #60 (comment).
  • Loading branch information
blackwinter committed Nov 16, 2021
1 parent 3c31cc0 commit 7a8b800
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions metafix/src/main/java/org/metafacture/metafix/FixMethod.java
Original file line number Diff line number Diff line change
Expand Up @@ -317,9 +317,6 @@ private static Value findNested(final Value.Hash hash, final String currentField
final Value nested = hash.get(currentField);

// TODO: array of maps, like in insertNested
if (nested.isArray()) {
return Value.newArray(a -> nested.asArray().forEach(v -> a.add(findNested(hash, currentField, remainingFields))));
}

if (nested.isHash()) {
return find(nested.asHash(), remainingFields);
Expand Down

0 comments on commit 7a8b800

Please sign in to comment.