Skip to content

Commit

Permalink
Minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
BZngr committed Feb 28, 2017
1 parent 8e4a56b commit a6fb323
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -83,10 +83,10 @@ private void SetValidLocalCopyVariableNameSuggestion()

private bool VariableNameIsValid(string variableName)
{
var validator = new VariableNameValidator(_localCopyVariableName);
var validator = new VariableNameValidator(variableName);
return validator.IsValidName()
&& !_variableNamesAccessibleToProcedureContext
.Any(name => name.Equals(_localCopyVariableName, System.StringComparison.InvariantCultureIgnoreCase));
.Any(name => name.Equals(variableName, System.StringComparison.InvariantCultureIgnoreCase));
}

private void ReplaceAssignedByValParameterReferences()
Expand Down

0 comments on commit a6fb323

Please sign in to comment.