Closed JayWelsh closed 2 years ago
bool
The linked statements perform a direct comparison between a bool literal and a bool variable.
if (supported == true) {
We advise the bool variable to be used directly instead in either its negated (!) form or its normal one depending on the need.
!
Resolved by https://github.com/seen-haus/seen-contracts/pull/47 and https://github.com/seen-haus/seen-contracts/pull/48
MHB-01S: Redundant Comparison of
bool
VariableDescription:
The linked statements perform a direct comparison between a
bool
literal and abool
variable.Example:
Recommendation:
We advise the
bool
variable to be used directly instead in either its negated (!
) form or its normal one depending on the need.