Inspectopedia
 
2024.3

Non short-circuit boolean

Warning
Reliability
New
Last modified: 03 December 2024

Reports the non-short-circuit forms of boolean operators 'and' and 'or' (& and |).

The non-short-circuit versions are occasionally useful, but their presence is often due to typos of the short-circuit forms (&& and ||), and may lead to subtle bugs.

Example:

After the quick-fix is applied: