Delinting future awaits round 3 (#10791)

* round 3

* partially address comments

* merge

* review notes

* review

* review

* review
This commit is contained in:
xster
2017-09-20 17:24:43 -07:00
committed by GitHub
parent 8475e0b290
commit e28765a997
10 changed files with 45 additions and 24 deletions

View File

@@ -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());

View File

@@ -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());