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