Skip to content

Commit 3903a90

Browse files
committed
C#: Update expected test output.
1 parent b5ea34f commit 3903a90

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

csharp/ql/test/query-tests/standalone/Bad Practices/Control-Flow/ConstantCondition/ConstantCondition.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ void M1()
1919
// Should not be considered a constant condition as
2020
// we don't know anything about D.
2121
var d = new D();
22-
if (d.Prop is C2) // $ Alert
22+
if (d.Prop is C2)
2323
{
2424
}
2525
}
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,2 @@
11
| ConstantCondition.cs:15:13:15:26 | ... is ... | Condition always evaluates to 'false'. |
22
| ConstantCondition.cs:15:24:15:26 | access to type Int32 | Pattern never matches. |
3-
| ConstantCondition.cs:22:13:22:24 | ... is ... | Condition always evaluates to 'false'. |
4-
| ConstantCondition.cs:22:23:22:24 | access to type C2 | Pattern never matches. |

0 commit comments

Comments
 (0)