fix upcoming lint avoid_returning_null_for_void (#23190)
This commit is contained in:
committed by
GitHub
parent
cab7ecb8e5
commit
8b0de38ef8
@@ -28,7 +28,7 @@ Future<void> main(List<String> rawArgs) async {
|
||||
stderr.writeln('Usage:\n');
|
||||
stderr.writeln(_argParser.usage);
|
||||
exitCode = 1;
|
||||
return null;
|
||||
return;
|
||||
}
|
||||
|
||||
if (!args.wasParsed('task')) {
|
||||
@@ -50,7 +50,7 @@ Future<void> main(List<String> rawArgs) async {
|
||||
if (_taskNames.isEmpty) {
|
||||
stderr.writeln('Failed to find tasks to run based on supplied options.');
|
||||
exitCode = 1;
|
||||
return null;
|
||||
return;
|
||||
}
|
||||
|
||||
final bool silent = args['silent'];
|
||||
|
||||
Reference in New Issue
Block a user