enable lint avoid_void_async (#21652)
This commit is contained in:
committed by
GitHub
parent
98ad574d9b
commit
774ca2f197
@@ -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
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user