This commit is contained in:
Jan Jurzitza 2017-08-13 14:14:37 +02:00 committed by Basile Burg
parent 142e284588
commit c98fa77f95
1 changed files with 2 additions and 1 deletions

View File

@ -132,7 +132,8 @@ class UnusedVariableCheck : BaseAnalyzer
ifStatement.expression.accept(this);
interestDepth--;
}
ifStatement.thenStatement.accept(this);
if (ifStatement.thenStatement !is null)
ifStatement.thenStatement.accept(this);
if (ifStatement.elseStatement !is null)
ifStatement.elseStatement.accept(this);
}