We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bc4ff59 commit d2b8bd5Copy full SHA for d2b8bd5
csharp/ql/lib/semmle/code/csharp/frameworks/system/Diagnostics.qll
@@ -41,9 +41,7 @@ class SystemDiagnosticsDebugClass extends SystemDiagnosticsClass {
41
/** Gets an `Assert(bool, ...)` method. */
42
Method getAssertMethod() {
43
result.getDeclaringType() = this and
44
- result.hasName("Assert") and
45
- result.getParameter(0).getType() instanceof BoolType and
46
- result.getReturnType() instanceof VoidType
+ result.hasName("Assert")
47
}
48
49
0 commit comments