invert_boolean_expression
Invert a boolean expression.
Before
void fn(bool condition) {
if (number == 0) {
// ^^^^^^^^^^^
// ...
}
}
After
void fn(bool condition) {
if (number != 0) {
// ...
}
}
Invert a boolean expression.
void fn(bool condition) {
if (number == 0) {
// ^^^^^^^^^^^
// ...
}
}
void fn(bool condition) {
if (number != 0) {
// ...
}
}