JS: address some style comments

This commit is contained in:
Asger F
2018-11-15 16:53:34 +00:00
parent 2870209299
commit 2e65f6b660
2 changed files with 3 additions and 3 deletions

View File

@@ -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>

View File

@@ -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