Skip to content

Commit 62d3380

Browse files
authored
Revert incorrect change in update_flutter_engine.dart (#213)
update_flutter_engine was broken by an incorrect change to try to fix an analyzer warning that didn't end up getting turned on; the default value is false, not null, for the help flag, so the test always passed.
1 parent 0e59304 commit 62d3380

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tools/dart_tools/bin/update_flutter_engine.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,9 +84,9 @@ Future<void> main(List<String> arguments) async {
8484
exit(1);
8585
}
8686

87-
if (parsedArguments['help'] != null || parsedArguments.rest.length != 1) {
87+
if (parsedArguments['help'] || parsedArguments.rest.length != 1) {
8888
printUsage(parser);
89-
exit(parsedArguments['help'] != null ? 0 : 1);
89+
exit(parsedArguments['help'] ? 0 : 1);
9090
}
9191

9292
try {

0 commit comments

Comments
 (0)