Skip to content

Commit b38a260

Browse files
JustinGroteCopilot
andauthored
More explicitly clarify parenthesis logic
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent e0038a2 commit b38a260

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/PowerShellEditorServices/Services/TextDocument/RenameService.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -402,7 +402,7 @@ internal class RenameVariableVisitor(Ast target, string newName, bool skipVerify
402402
internal AstVisitAction Visit(Ast ast)
403403
{
404404
// If this is our first visit, we need to initialize and verify the scope, otherwise verify we are still on the same document.
405-
if (!skipVerify && CurrentDocument is null || VariableDefinition is null)
405+
if ((!skipVerify && CurrentDocument is null) || VariableDefinition is null)
406406
{
407407
CurrentDocument = ast.GetHighestParent();
408408
if (CurrentDocument.Find(ast => ast == target, true) is null)

0 commit comments

Comments
 (0)