mirror of
https://github.com/github/codeql.git
synced 2025-12-16 16:53:25 +01:00
C#: Modify compiler generated strip logic to also take generated ToString calls into account.
This commit is contained in:
@@ -11,7 +11,7 @@ import csharp
|
||||
|
||||
from ConditionalExpr e
|
||||
where
|
||||
e.getThen().stripImplicitCasts() != e.getElse().stripImplicitCasts() and
|
||||
e.getThen().stripImplicit() != e.getElse().stripImplicit() and
|
||||
not e.getThen().getType() instanceof NullType and
|
||||
not e.getElse().getType() instanceof NullType
|
||||
select e
|
||||
|
||||
Reference in New Issue
Block a user