Skip to content

Commit 6e49dbf

Browse files
committed
C: More testfile changes.
1 parent accee8b commit 6e49dbf

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ class Bad
22
{
33
public int Max(int a, int b)
44
{
5-
return a > a ? a : b; /* Alert
5+
bool b = true;
6+
return a > a ? a : b; // $ Alert
67
}
78
}

0 commit comments

Comments
 (0)