apply partially the upcoming unnecessary_lambdas (#8810)
This commit is contained in:
committed by
GitHub
parent
f9ad230f15
commit
2166ea5b7f
@@ -430,9 +430,7 @@ Future<Null> runAndCaptureAsyncStacks(Future<Null> callback()) {
|
||||
Chain.capture(() async {
|
||||
await callback();
|
||||
completer.complete();
|
||||
}, onError: (dynamic error, Chain chain) async {
|
||||
completer.completeError(error, chain);
|
||||
});
|
||||
}, onError: completer.completeError);
|
||||
return completer.future;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user