diff --git a/csharp/ql/lib/semmle/code/csharp/controlflow/Guards.qll b/csharp/ql/lib/semmle/code/csharp/controlflow/Guards.qll index 7185e39a45b2..6f8856e1978a 100644 --- a/csharp/ql/lib/semmle/code/csharp/controlflow/Guards.qll +++ b/csharp/ql/lib/semmle/code/csharp/controlflow/Guards.qll @@ -1620,10 +1620,6 @@ module Internal { isGuard(g1, v1) and v2 = v1 or - g2 = g1.(Assignment).getLValue() and - isGuard(g1, v1) and - v2 = v1 - or g2 = g1.(CastExpr).getExpr() and isGuard(g1, v1) and v2 = v1.(NullValue)