Skip to content

Commit

Permalink
Remove redundant null check (#65745)
Browse files Browse the repository at this point in the history
  • Loading branch information
Youssef1313 authored Dec 3, 2022
1 parent eebc8b7 commit 4289c24
Showing 1 changed file with 0 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,6 @@ public override async Task ComputeRefactoringsAsync(CodeRefactoringContext conte
}

var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
if (semanticModel == null)
{
return;
}

var memberNodeSymbolPairs = selectedMemberNodes
.SelectAsArray(m => (node: m, symbol: semanticModel.GetRequiredDeclaredSymbol(m, cancellationToken)))
// Use same logic as pull members up for determining if a selected member
Expand Down

0 comments on commit 4289c24

Please sign in to comment.