Unverified Commit f9acb1e8 authored by Phil Quitslund's avatar Phil Quitslund Committed by GitHub

-- unnecessary parens (#117081)

parent 57fb36ee
...@@ -103,7 +103,7 @@ bool getBoolFromEnvOrArgs( ...@@ -103,7 +103,7 @@ bool getBoolFromEnvOrArgs(
) { ) {
final String envName = fromArgToEnvName(name); final String envName = fromArgToEnvName(name);
if (env[envName] != null) { if (env[envName] != null) {
return (env[envName]?.toUpperCase()) == 'TRUE'; return env[envName]?.toUpperCase() == 'TRUE';
} }
return argResults[name] as bool; return argResults[name] as bool;
} }
......
...@@ -69,8 +69,8 @@ ui.RRect getSurroundingRect(WidgetTester tester, {int child = 0}) { ...@@ -69,8 +69,8 @@ ui.RRect getSurroundingRect(WidgetTester tester, {int child = 0}) {
Size getChildSize(WidgetTester tester, {int child = 0}) { Size getChildSize(WidgetTester tester, {int child = 0}) {
// Using dynamic so the test can access private classes. // Using dynamic so the test can access private classes.
// ignore: avoid_dynamic_calls // ignore: avoid_dynamic_calls
return ((getRenderSegmentedControl(tester) as RenderBoxContainerDefaultsMixin<RenderBox, ContainerBoxParentData<RenderBox>>) return (getRenderSegmentedControl(tester) as RenderBoxContainerDefaultsMixin<RenderBox, ContainerBoxParentData<RenderBox>>)
.getChildrenAsList()[child]).size; .getChildrenAsList()[child].size;
} }
Color getBorderColor(WidgetTester tester) { Color getBorderColor(WidgetTester tester) {
......
...@@ -635,7 +635,7 @@ class FlutterValidator extends DoctorValidator { ...@@ -635,7 +635,7 @@ class FlutterValidator extends DoctorValidator {
bool _filePathContainsDirPath(String directory, String file) { bool _filePathContainsDirPath(String directory, String file) {
// calling .canonicalize() will normalize for alphabetic case and path // calling .canonicalize() will normalize for alphabetic case and path
// separators // separators
return (_fileSystem.path.canonicalize(file)) return _fileSystem.path.canonicalize(file)
.startsWith(_fileSystem.path.canonicalize(directory) + _fileSystem.path.separator); .startsWith(_fileSystem.path.canonicalize(directory) + _fileSystem.path.separator);
} }
......
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