Skip to content

Commit 4a3623d

Browse files
authored
Update FormDesignerRefactorRenameCommandMenuItem.cs
removed redundant null-check
1 parent 569b063 commit 4a3623d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

RetailCoder.VBE/UI/Command/MenuItems/FormDesignerRefactorRenameCommandMenuItem.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,7 @@ public FormDesignerRefactorRenameCommandMenuItem(CommandBase command)
1515

1616
public override bool EvaluateCanExecute(RubberduckParserState state)
1717
{
18-
return (state?.Status ?? ParserState.None) == ParserState.Ready
19-
&& Command.CanExecute(null);
18+
return state.Status == ParserState.Ready && Command.CanExecute(null);
2019
}
2120
}
2221
}

0 commit comments

Comments
 (0)