2 ms·
The first thing that happened reading that code is: "Why is == true a condition" "Oh because it's a nullsble boolean" "Why is isn't the non-nullable getter b
by BoorishBears 7y ago
The first thing that happened reading that code is:
"Why is == true a condition"
"Oh because it's a nullsble boolean"
"Why is isn't the non-nullable getter being used"
There's no analyzer for it, but it looks very "wrong" to your eyes to be testing equality of a boolean against true instead of just using the boolean value directly