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 e0256ca commit d4087a1
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 d4087a1

Please sign in to comment.