Index: pkg/analyzer_experimental/bin/analyzer.dart |
diff --git a/pkg/analyzer_experimental/bin/analyzer.dart b/pkg/analyzer_experimental/bin/analyzer.dart |
index cb730cd0b1b4654eb2b16a94dd11c29595f87cc7..f4806ac12a3df336ca693c5fa98baf38f92b7a9f 100644 |
--- a/pkg/analyzer_experimental/bin/analyzer.dart |
+++ b/pkg/analyzer_experimental/bin/analyzer.dart |
@@ -38,7 +38,7 @@ Future<AnalysisResult> run(List<String> args) { |
var options = new CommandLineOptions.parse(args); |
if (options == null) { |
- return new Future.immediate(new AnalysisResult.forFailure()); |
+ return new Future.value(new AnalysisResult.forFailure()); |
} |
//TODO(pquitslund): call out to analyzer... |