Code inspection: Remove redundant statement
This inspection reports a boolean compound assignment with true that never changes the result. For &= true, the statement is always redundant because x & true is just x.
Example
bool ready = GetValue();
ready &= true;
bool ready = GetValue();
Quick-fix
Remove the redundant statement.
29 March 2026