| 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 7da6bb41e0ca0edbded103493cf6016572603cfe..d700c4e483c3d178c8ad9dad2b3b1a63b0f3b82b 100644
|
| --- a/pkg/analyzer_cli/lib/src/options.dart
|
| +++ b/pkg/analyzer_cli/lib/src/options.dart
|
| @@ -146,10 +146,12 @@ class CommandLineOptions {
|
| // Check that SDK is specified.
|
| if (sdkPath == null) {
|
| printAndFail('No Dart SDK found.');
|
| + return null; // Only reachable in testing.
|
| }
|
| // Check that SDK is existing directory.
|
| if (!(new Directory(sdkPath)).existsSync()) {
|
| printAndFail('Invalid Dart SDK path: $sdkPath');
|
| + return null; // Only reachable in testing.
|
| }
|
| }
|
|
|
| @@ -158,6 +160,7 @@ class CommandLineOptions {
|
| if (options.packageRootPath != null &&
|
| options.packageConfigPath != null) {
|
| printAndFail("Cannot specify both '--package-root' and '--packages.");
|
| + return null; // Only reachable in testing.
|
| }
|
| }
|
|
|
|
|