enable lint avoid_void_async (#21652)

This commit is contained in:
Alexandre Ardhuin
2018-09-11 07:14:04 +02:00
committed by GitHub
parent 98ad574d9b
commit 774ca2f197
8 changed files with 12 additions and 12 deletions

View File

@@ -316,7 +316,7 @@ class ResidentCompiler {
final List<_CompilationRequest> _compilationQueue = <_CompilationRequest>[];
void _handleCompilationRequest(_CompilationRequest request) async {
Future<void> _handleCompilationRequest(_CompilationRequest request) async {
final bool isEmpty = _compilationQueue.isEmpty;
_compilationQueue.add(request);
// Only trigger processing if queue was empty - i.e. no other requests

View File

@@ -503,7 +503,7 @@ flutter:
});
group('FlutterManifest with MemoryFileSystem', () {
void assertSchemaIsReadable() async {
Future<void> assertSchemaIsReadable() async {
const String manifest = '''
name: test
dependencies:
@@ -529,18 +529,18 @@ flutter:
);
}
testUsingContext('Validate manifest on original fs', () async {
testUsingContext('Validate manifest on original fs', () {
assertSchemaIsReadable();
});
testUsingContextAndFs('Validate manifest on Posix FS',
new MemoryFileSystem(style: FileSystemStyle.posix), () async {
new MemoryFileSystem(style: FileSystemStyle.posix), () {
assertSchemaIsReadable();
}
);
testUsingContextAndFs('Validate manifest on Windows FS',
new MemoryFileSystem(style: FileSystemStyle.windows), () async {
new MemoryFileSystem(style: FileSystemStyle.windows), () {
assertSchemaIsReadable();
}
);