Skip to content

Commit

Permalink
GH-153 - removing redundant code
Browse files Browse the repository at this point in the history
  • Loading branch information
tpodolak committed Oct 2, 2022
1 parent a43bc35 commit 5dacece
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,6 @@ private IndexerInfo GetIndexerInfo(IOperation indexerOperation)
{
ISymbol info = indexerOperation switch
{
IInvocationOperation inv => inv.TargetMethod,
IArrayElementReferenceOperation x => x.Type,
_ => null
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,6 @@ private void AnalyzeInvocation(OperationAnalysisContext syntaxNodeContext)
{
var invocationOperation = (IInvocationOperation)syntaxNodeContext.Operation;

if (invocationOperation.Parent == null)
{
return;
}

if (invocationOperation.TargetMethod.IsReceivedLikeMethod() == false)
{
return;
Expand Down

0 comments on commit 5dacece

Please sign in to comment.