Skip to content

Commit

Permalink
[kalessil#302] HostnameSubstitutionInspector: bug-fixing
Browse files Browse the repository at this point in the history
  • Loading branch information
kalessil committed Jul 24, 2017
1 parent c79a55e commit e68063b
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -106,11 +106,12 @@ private void inspectAssignmentContext(
/* variables can be processed in scope only */
final Function scope = ExpressionSemanticUtil.getScope(storage);
if (scope != null) {
final String variableName = ((Variable) storage).getName();
boolean reachedExpression = false;
for (final Variable candidate : PsiTreeUtil.findChildrenOfType(scope, Variable.class)) {
if (!reachedExpression) {
reachedExpression = candidate == storage;
} else {
} else if (candidate.getName().equals(variableName)) {
final PsiElement parent = candidate.getParent();
if (parent instanceof ConcatenationExpression) {
this.inspectConcatenationContext((ConcatenationExpression) parent);
Expand Down

0 comments on commit e68063b

Please sign in to comment.