From f9acb1e88c0b4e4a73b979cbad668ba935bcc3d6 Mon Sep 17 00:00:00 2001 From: Phil Quitslund Date: Wed, 14 Dec 2022 13:18:37 -0800 Subject: [PATCH] -- unnecessary parens (#117081) --- dev/conductor/core/lib/src/globals.dart | 2 +- packages/flutter/test/cupertino/segmented_control_test.dart | 4 ++-- packages/flutter_tools/lib/src/doctor.dart | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/dev/conductor/core/lib/src/globals.dart b/dev/conductor/core/lib/src/globals.dart index d705055f0569..52d31b753910 100644 --- a/dev/conductor/core/lib/src/globals.dart +++ b/dev/conductor/core/lib/src/globals.dart @@ -103,7 +103,7 @@ bool getBoolFromEnvOrArgs( ) { final String envName = fromArgToEnvName(name); if (env[envName] != null) { - return (env[envName]?.toUpperCase()) == 'TRUE'; + return env[envName]?.toUpperCase() == 'TRUE'; } return argResults[name] as bool; } diff --git a/packages/flutter/test/cupertino/segmented_control_test.dart b/packages/flutter/test/cupertino/segmented_control_test.dart index 4e448304a95b..65a62297adc6 100644 --- a/packages/flutter/test/cupertino/segmented_control_test.dart +++ b/packages/flutter/test/cupertino/segmented_control_test.dart @@ -69,8 +69,8 @@ ui.RRect getSurroundingRect(WidgetTester tester, {int child = 0}) { Size getChildSize(WidgetTester tester, {int child = 0}) { // Using dynamic so the test can access private classes. // ignore: avoid_dynamic_calls - return ((getRenderSegmentedControl(tester) as RenderBoxContainerDefaultsMixin>) - .getChildrenAsList()[child]).size; + return (getRenderSegmentedControl(tester) as RenderBoxContainerDefaultsMixin>) + .getChildrenAsList()[child].size; } Color getBorderColor(WidgetTester tester) { diff --git a/packages/flutter_tools/lib/src/doctor.dart b/packages/flutter_tools/lib/src/doctor.dart index 651dc6cf367a..85519b04be0e 100644 --- a/packages/flutter_tools/lib/src/doctor.dart +++ b/packages/flutter_tools/lib/src/doctor.dart @@ -635,7 +635,7 @@ class FlutterValidator extends DoctorValidator { bool _filePathContainsDirPath(String directory, String file) { // calling .canonicalize() will normalize for alphabetic case and path // separators - return (_fileSystem.path.canonicalize(file)) + return _fileSystem.path.canonicalize(file) .startsWith(_fileSystem.path.canonicalize(directory) + _fileSystem.path.separator); }