mirror of
https://github.com/github/codeql.git
synced 2026-04-27 17:55:19 +02:00
JS: address comments
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
* indicate faulty logic and dead code.
|
||||
* @kind problem
|
||||
* @problem.severity warning
|
||||
* @id js/useless-range-check
|
||||
* @id js/useless-comparison-test
|
||||
* @tags correctness
|
||||
* @precision high
|
||||
*/
|
||||
@@ -57,4 +57,4 @@ predicate isGuardNodeWithDeadCode(ConditionGuardNode guard) {
|
||||
|
||||
from ConditionGuardNode guard
|
||||
where isGuardNodeWithDeadCode(guard)
|
||||
select guard.getTest(), "The condition '" + guard.getTest() + "' is always " + guard.getOutcome().booleanNot()
|
||||
select guard.getTest(), "The condition '" + guard.getTest() + "' is always " + guard.getOutcome().booleanNot() + "."
|
||||
|
||||
Reference in New Issue
Block a user