Delinting future awaits round 3 (#10791)
* round 3 * partially address comments * merge * review notes * review * review * review
This commit is contained in:
@@ -42,7 +42,7 @@ const List<String> _kRequiredOptions = const <String>[
|
||||
Future<Null> main(List<String> args) async {
|
||||
final AppContext executableContext = new AppContext();
|
||||
executableContext.setVariable(Logger, new StdoutLogger());
|
||||
executableContext.runInZone(() {
|
||||
await executableContext.runInZone(() {
|
||||
// Initialize the context with some defaults.
|
||||
context.putIfAbsent(Platform, () => const LocalPlatform());
|
||||
context.putIfAbsent(FileSystem, () => const LocalFileSystem());
|
||||
|
||||
@@ -38,7 +38,7 @@ const List<String> _kRequiredOptions = const <String>[
|
||||
Future<Null> main(List<String> args) async {
|
||||
final AppContext executableContext = new AppContext();
|
||||
executableContext.setVariable(Logger, new StdoutLogger());
|
||||
executableContext.runInZone(() {
|
||||
await executableContext.runInZone(() {
|
||||
// Initialize the context with some defaults.
|
||||
context.putIfAbsent(Platform, () => const LocalPlatform());
|
||||
context.putIfAbsent(FileSystem, () => const LocalFileSystem());
|
||||
|
||||
Reference in New Issue
Block a user