mirror of
https://github.com/github/codeql.git
synced 2026-04-29 02:35:15 +02:00
JS: address some style comments
This commit is contained in:
@@ -5,14 +5,14 @@
|
||||
<overview>
|
||||
<p>
|
||||
If a condition always evaluates to true or always evaluates to false, this often indicates
|
||||
incomplete code or a latent bug and should be examined carefully.
|
||||
incomplete code or a latent bug, and it should be examined carefully.
|
||||
</p>
|
||||
|
||||
</overview>
|
||||
<recommendation>
|
||||
|
||||
<p>
|
||||
Examine the surrounding code to determine why the condition is useless. If it is no
|
||||
Examine the surrounding code to determine why the condition is redundant. If it is no
|
||||
longer needed, remove it.
|
||||
</p>
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
/**
|
||||
* @name Useless range check
|
||||
* @description If a range check always fails or always succeeds it is indicative of a bug.
|
||||
* @description If a range check always fails or always succeeds, it is indicative of a bug.
|
||||
* @kind problem
|
||||
* @problem.severity warning
|
||||
* @id js/useless-range-check
|
||||
|
||||
Reference in New Issue
Block a user