enable prefer_function_declarations_over_variables lint (#77398)
This commit is contained in:
committed by
GitHub
parent
3571882e43
commit
807bb29888
@@ -77,7 +77,7 @@ Future<void> main() async {
|
||||
Directory(path.join(hostAppDir.path, 'gradle', 'wrapper')),
|
||||
);
|
||||
|
||||
final Function clean = () async {
|
||||
Future<void> clean() async {
|
||||
section('Clean');
|
||||
await inDirectory(hostAppDir, () async {
|
||||
await exec(gradlewExecutable,
|
||||
@@ -87,7 +87,7 @@ Future<void> main() async {
|
||||
},
|
||||
);
|
||||
});
|
||||
};
|
||||
}
|
||||
|
||||
if (!Platform.isWindows) {
|
||||
section('Make $gradlewExecutable executable');
|
||||
|
||||
@@ -179,7 +179,6 @@ class FakeDevice extends AndroidDevice {
|
||||
FakeDevice({String deviceId}) : super(deviceId: deviceId);
|
||||
|
||||
static String output = '';
|
||||
static ExitErrorFactory exitErrorFactory = () => null;
|
||||
|
||||
static List<CommandArgs> commandLog = <CommandArgs>[];
|
||||
|
||||
@@ -222,8 +221,5 @@ class FakeDevice extends AndroidDevice {
|
||||
arguments: arguments,
|
||||
environment: environment,
|
||||
));
|
||||
final dynamic exitError = exitErrorFactory();
|
||||
if (exitError != null)
|
||||
throw exitError;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user