Unverified Commit 5613ab01 authored by Phil Quitslund's avatar Phil Quitslund Committed by GitHub

remove unnecessary parens (#119736)

parent 1573c129
......@@ -3075,15 +3075,15 @@ void main() {
void verifyAutocorrectionRectVisibility({ required bool expectVisible }) {
PaintPattern evaluate() {
if (expectVisible) {
return paints..something(((Symbol method, List<dynamic> arguments) {
return paints..something((Symbol method, List<dynamic> arguments) {
if (method != #drawRect) {
return false;
}
final Paint paint = arguments[1] as Paint;
return paint.color == rectColor;
}));
});
} else {
return paints..everything(((Symbol method, List<dynamic> arguments) {
return paints..everything((Symbol method, List<dynamic> arguments) {
if (method != #drawRect) {
return true;
}
......@@ -3092,7 +3092,7 @@ void main() {
return true;
}
throw 'Expected: autocorrection rect not visible, found: ${arguments[0]}';
}));
});
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment