Skip to content

Commit 0f158e5

Browse files
committed
Format Update
1 parent fa522a5 commit 0f158e5

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ internal static Ast GetAstParentScope(Ast node)
194194
// Check if the parent of the VariableExpressionAst is a ForEachStatementAst then check if the variable names match
195195
// if so this is probably a variable defined within a foreach loop
196196
else if (parent is ForEachStatementAst ForEachStmnt && node is VariableExpressionAst VarExp &&
197-
ForEachStmnt.Variable.VariablePath.UserPath == VarExp.VariablePath.UserPath)
197+
ForEachStmnt.Variable.VariablePath.UserPath == VarExp.VariablePath.UserPath)
198198
{
199199
parent = ForEachStmnt;
200200
}
@@ -252,7 +252,9 @@ internal static bool WithinTargetsScope(Ast Target, Ast Child)
252252
if (Child is VariableExpressionAst VarExpAst && !IsVariableExpressionAssignedInTargetScope(VarExpAst, FuncDefAst))
253253
{
254254

255-
}else{
255+
}
256+
else
257+
{
256258
break;
257259
}
258260
}

0 commit comments

Comments
 (0)