We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2c51f86 commit 8fd3a41Copy full SHA for 8fd3a41
javascript/ql/src/Statements/UselessComparisonTest.ql
@@ -4,7 +4,7 @@
4
* indicate faulty logic and dead code.
5
* @kind problem
6
* @problem.severity warning
7
- * @id js/useless-range-check
+ * @id js/useless-comparison-test
8
* @tags correctness
9
* @precision high
10
*/
@@ -57,4 +57,4 @@ predicate isGuardNodeWithDeadCode(ConditionGuardNode guard) {
57
58
from ConditionGuardNode guard
59
where isGuardNodeWithDeadCode(guard)
60
-select guard.getTest(), "The condition '" + guard.getTest() + "' is always " + guard.getOutcome().booleanNot()
+select guard.getTest(), "The condition '" + guard.getTest() + "' is always " + guard.getOutcome().booleanNot() + "."
0 commit comments