Skip to content
This repository was archived by the owner on Nov 8, 2018. It is now read-only.

Commit b4c1bb1

Browse files
committed
Remove unnecessary null check
1 parent 5e8297e commit b4c1bb1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

AsyncUsageAnalyzers/AsyncUsageAnalyzers.CodeFixes/Helpers/RenameHelper.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public static async Task<Solution> RenameSymbolAsync(Document document, SyntaxNo
2121
var annotatedToken = annotatedRoot.FindToken(declarationToken.SpanStart);
2222

2323
var semanticModel = await annotatedDocument.GetSemanticModelAsync(cancellationToken).ConfigureAwait(false);
24-
var symbol = semanticModel?.GetDeclaredSymbol(annotatedToken.Parent, cancellationToken);
24+
var symbol = semanticModel.GetDeclaredSymbol(annotatedToken.Parent, cancellationToken);
2525

2626
var newSolution = await Renamer.RenameSymbolAsync(annotatedSolution, symbol, newName, null, cancellationToken).ConfigureAwait(false);
2727

0 commit comments

Comments
 (0)