enable prefer_function_declarations_over_variables lint (#77398)

This commit is contained in:
Michael Goderbauer
2021-03-05 18:29:04 -08:00
committed by GitHub
parent 3571882e43
commit 807bb29888
70 changed files with 274 additions and 276 deletions

View File

@@ -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');

View File

@@ -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;
}
}