Skip to content

Commit

Permalink
Remove unnecessary null check
Browse files Browse the repository at this point in the history
  • Loading branch information
AArnott committed Aug 17, 2021
1 parent 866757e commit 352508b
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ internal static IEnumerable<TypeMatchSpec> ReadTypesAndMembers(AnalyzerOptions a
throw new InvalidOperationException($"Regex.Match timeout when parsing line: {line}");
}

if (match == null || !match.Success)
if (!match.Success)
{
throw new InvalidOperationException($"Parsing error on line: {line}");
}
Expand Down Expand Up @@ -196,7 +196,7 @@ internal static QualifiedMember ParseAdditionalFileMethodLine(string line)
throw new InvalidOperationException($"Regex.Match timeout when parsing line: {line}");
}

if (match == null || !match.Success)
if (!match.Success)
{
throw new InvalidOperationException($"Parsing error on line: {line}");
}
Expand Down

0 comments on commit 352508b

Please sign in to comment.