Skip to content
This repository has been archived by the owner on Feb 22, 2023. It is now read-only.

Commit

Permalink
-- unnecessary parens (#117081)
Browse files Browse the repository at this point in the history
  • Loading branch information
pq committed Dec 14, 2022
1 parent 57fb36e commit f9acb1e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion dev/conductor/core/lib/src/globals.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
4 changes: 2 additions & 2 deletions packages/flutter/test/cupertino/segmented_control_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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<RenderBox, ContainerBoxParentData<RenderBox>>)
.getChildrenAsList()[child]).size;
return (getRenderSegmentedControl(tester) as RenderBoxContainerDefaultsMixin<RenderBox, ContainerBoxParentData<RenderBox>>)
.getChildrenAsList()[child].size;
}

Color getBorderColor(WidgetTester tester) {
Expand Down
2 changes: 1 addition & 1 deletion packages/flutter_tools/lib/src/doctor.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit f9acb1e

Please sign in to comment.