blob: 1280703747bd0e369aa68151d9d1612617d47d6e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
use-returnValue
===============
Warn when idempotent methods are called and their return value is unused.
Examples of incorrect code for this rule:
-----------------------------------------
.. code-block:: js
foo.concat(bar)
baz.concat()
Examples of correct code for this rule:
---------------------------------------
.. code-block:: js
a = foo.concat(bar)
b = baz.concat()
|