apply lint prefer_void_to_null in packages/flutter_tools (#22686)
This commit is contained in:
committed by
GitHub
parent
c26b56cba3
commit
2d3ff10d62
@@ -11,12 +11,12 @@ import 'package:flutter_tools/src/runner/flutter_command.dart';
|
||||
import '../src/common.dart';
|
||||
import '../src/context.dart';
|
||||
|
||||
typedef _TestMethod = FutureOr<Null> Function();
|
||||
typedef _TestMethod = FutureOr<void> Function();
|
||||
|
||||
void main() {
|
||||
Cache.disableLocking();
|
||||
|
||||
Future<Null> runCommand(Iterable<String> flags, _TestMethod testMethod) async {
|
||||
Future<void> runCommand(Iterable<String> flags, _TestMethod testMethod) async {
|
||||
final List<String> args = <String>['test']..addAll(flags);
|
||||
final _TestCommand command = _TestCommand(testMethod);
|
||||
await createTestCommandRunner(command).run(args);
|
||||
|
||||
Reference in New Issue
Block a user