Skip to content

Commit

Permalink
We don't need the else block, the base class IsMatch already inspects…
Browse files Browse the repository at this point in the history
… the terms.
  • Loading branch information
dgrunwald committed Aug 12, 2023
1 parent 911abd2 commit a0ba223
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions ICSharpCode.ILSpyX/Search/LiteralSearchStrategy.cs
Original file line number Diff line number Diff line change
Expand Up @@ -74,12 +74,8 @@ public LiteralSearchStrategy(ILanguage language, ApiVisibility apiVisibility, Se
break;
}
}
else
{
searchTermLiteralType = TypeCode.String;
searchTermLiteralValue = terms[0];
}
}
// Note: if searchTermLiteralType remains TypeCode.Empty, we'll do a substring search via base.IsMatch
}

public override void Search(PEFile module, CancellationToken cancellationToken)
Expand Down

0 comments on commit a0ba223

Please sign in to comment.