Inspectopedia
 
2024.3

Simplifiable boolean union

Info
New
Last modified: 03 December 2024

Reports usages of true | false that can be replaced with bool. The bool keyword is a shorthand that aids readability.

A quick fix is available to convert any combination of true | false with bool.

Example:

After the quick fix:

type example = bool