Skip to content

Commit 1fb36ef

Browse files
committed
Minor stylistic change based on review comment
1 parent b011dff commit 1fb36ef

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Rubberduck.CodeAnalysis/QuickFixes/IgnoreOnceQuickFix.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public IgnoreOnceQuickFix(RubberduckParserState state, IEnumerable<IInspection>
3131

3232
public override void Fix(IInspectionResult result, IRewriteSession rewriteSession)
3333
{
34-
if (result.Target?.DeclarationType.HasFlag(DeclarationType.Module) == true)
34+
if (result.Target?.DeclarationType.HasFlag(DeclarationType.Module) ?? false)
3535
{
3636
FixModule(result, rewriteSession);
3737
}
@@ -92,7 +92,7 @@ private void FixNonModule(IInspectionResult result, IRewriteSession rewriteSessi
9292
rewriter.InsertAfter(insertionIndex, insertText);
9393
}
9494

95-
private string WhitespaceAfter(VBAParser.EndOfLineContext endOfLine)
95+
private static string WhitespaceAfter(VBAParser.EndOfLineContext endOfLine)
9696
{
9797
var individualEndOfStatement = (VBAParser.IndividualNonEOFEndOfStatementContext) endOfLine.Parent;
9898
var whiteSpaceOnNextLine = individualEndOfStatement.whiteSpace(0);

0 commit comments

Comments
 (0)