Skip to content

Commit 86e6287

Browse files
committed
fixing comment grammar
1 parent 92ae8f4 commit 86e6287

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/PowerShellEditorServices/Services/PowerShell/Refactoring/IterativeVariableVisitor.cs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ public static Ast GetVariableTopAssignment(int StartLineNumber, int StartColumnN
8383
}
8484

8585
Ast TargetParent = GetAstParentScope(node);
86-
// Find All Variables and Parameter Assignments with the same name before
86+
// Find all variables and parameter assignments with the same name before
8787
// The node found above
8888
List<VariableExpressionAst> VariableAssignments = ScriptAst.FindAll(ast =>
8989
{
@@ -152,7 +152,6 @@ varDef.Parent is CommandAst &&
152152
}
153153
}
154154

155-
156155
if (node.Parent is CommandAst commDef)
157156
{
158157
if (funcDef.Name == commDef.GetCommandName()
@@ -168,8 +167,6 @@ varDef.Parent is CommandAst &&
168167
CorrectDefinition = element;
169168
}
170169
}
171-
172-
173170
}
174171
return CorrectDefinition ?? node;
175172
}

0 commit comments

Comments
 (0)