Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(962)

Unified Diff: pkg/analyzer_cli/lib/src/options.dart

Issue 2720593002: fix failing bazel workspace relative path test (Closed)
Patch Set: Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | pkg/analyzer_cli/test/driver_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer_cli/lib/src/options.dart
diff --git a/pkg/analyzer_cli/lib/src/options.dart b/pkg/analyzer_cli/lib/src/options.dart
index f93d5f6e62ffe6cc4769df893ccf81d87f3f5bcd..aab9ddf32158c3dbfb789cf71cbd6abee5bc21cd 100644
--- a/pkg/analyzer_cli/lib/src/options.dart
+++ b/pkg/analyzer_cli/lib/src/options.dart
@@ -250,10 +250,12 @@ class CommandLineOptions {
if (options.buildModePersistentWorker && !options.buildMode) {
printAndFail('The option --persisten_worker can be used only '
'together with --build-mode.');
+ return null; // Only reachable in testing.
}
if (options.buildSummaryOnlyDiet && !options.buildSummaryOnly) {
printAndFail('The option --build-summary-only-diet can be used only '
'together with --build-summary-only.');
+ return null; // Only reachable in testing.
}
return options;
« no previous file with comments | « no previous file | pkg/analyzer_cli/test/driver_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698