blob: 31492bed03d4bfc725ef4005e0939e97e59e18ae (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
### What it does
Checks for the use of short circuit boolean conditions as
a
statement.
### Why is this bad?
Using a short circuit boolean condition as a statement
may hide the fact that the second part is executed or not depending on the
outcome of the first part.
### Example
```
f() && g(); // We should write `if f() { g(); }`.
```
|