Skip to content

Commit f9acb1e

Browse files
authored
-- unnecessary parens (#117081)
1 parent 57fb36e commit f9acb1e

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

dev/conductor/core/lib/src/globals.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ bool getBoolFromEnvOrArgs(
103103
) {
104104
final String envName = fromArgToEnvName(name);
105105
if (env[envName] != null) {
106-
return (env[envName]?.toUpperCase()) == 'TRUE';
106+
return env[envName]?.toUpperCase() == 'TRUE';
107107
}
108108
return argResults[name] as bool;
109109
}

packages/flutter/test/cupertino/segmented_control_test.dart

+2-2
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,8 @@ ui.RRect getSurroundingRect(WidgetTester tester, {int child = 0}) {
6969
Size getChildSize(WidgetTester tester, {int child = 0}) {
7070
// Using dynamic so the test can access private classes.
7171
// ignore: avoid_dynamic_calls
72-
return ((getRenderSegmentedControl(tester) as RenderBoxContainerDefaultsMixin<RenderBox, ContainerBoxParentData<RenderBox>>)
73-
.getChildrenAsList()[child]).size;
72+
return (getRenderSegmentedControl(tester) as RenderBoxContainerDefaultsMixin<RenderBox, ContainerBoxParentData<RenderBox>>)
73+
.getChildrenAsList()[child].size;
7474
}
7575

7676
Color getBorderColor(WidgetTester tester) {

packages/flutter_tools/lib/src/doctor.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -635,7 +635,7 @@ class FlutterValidator extends DoctorValidator {
635635
bool _filePathContainsDirPath(String directory, String file) {
636636
// calling .canonicalize() will normalize for alphabetic case and path
637637
// separators
638-
return (_fileSystem.path.canonicalize(file))
638+
return _fileSystem.path.canonicalize(file)
639639
.startsWith(_fileSystem.path.canonicalize(directory) + _fileSystem.path.separator);
640640
}
641641

0 commit comments

Comments
 (0)