Skip to content

Commit

Permalink
finding node by name/type is case-sensitive
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewazores committed Jan 20, 2022
1 parent 93faa32 commit 7e008e6
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -602,9 +602,8 @@ static DataFetcher<List<TargetNode>> provideTargetsDescendedFromFetcher(Platform
}

static AbstractNode findNode(String name, String nodeType, AbstractNode root) {
if (Objects.equals(name.toLowerCase(), root.getName().toLowerCase())
&& Objects.equals(
nodeType.toLowerCase(), root.getNodeType().getKind().toLowerCase())) {
if (Objects.equals(name, root.getName())
&& Objects.equals(nodeType, root.getNodeType().getKind())) {
return root;
}
if (root instanceof EnvironmentNode) {
Expand Down

0 comments on commit 7e008e6

Please sign in to comment.