Skip to content

Commit 8fd3a41

Browse files
committed
JS: address comments
1 parent 2c51f86 commit 8fd3a41

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

javascript/ql/src/Statements/UselessComparisonTest.ql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* indicate faulty logic and dead code.
55
* @kind problem
66
* @problem.severity warning
7-
* @id js/useless-range-check
7+
* @id js/useless-comparison-test
88
* @tags correctness
99
* @precision high
1010
*/
@@ -57,4 +57,4 @@ predicate isGuardNodeWithDeadCode(ConditionGuardNode guard) {
5757

5858
from ConditionGuardNode guard
5959
where isGuardNodeWithDeadCode(guard)
60-
select guard.getTest(), "The condition '" + guard.getTest() + "' is always " + guard.getOutcome().booleanNot()
60+
select guard.getTest(), "The condition '" + guard.getTest() + "' is always " + guard.getOutcome().booleanNot() + "."

0 commit comments

Comments
 (0)