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

Unified Diff: lib/src/options.dart

Issue 1167543002: Fix checked mode error (Closed) Base URL: https://github.com/dart-lang/dev_compiler.git@master
Patch Set: Filter out empty string Created 5 years, 7 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 | « lib/src/dependency_graph.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/options.dart
diff --git a/lib/src/options.dart b/lib/src/options.dart
index 7591a881de8934b804956d1e468f86d7b8838b5c..0b4778c2e19fcc4bac42f817b92fcbe47d792451 100644
--- a/lib/src/options.dart
+++ b/lib/src/options.dart
@@ -311,7 +311,10 @@ CompilerOptions parseOptions(List<String> argv) {
useMultiPackage: args['use-multi-package'],
packageRoot: args['package-root'],
packagePaths: args['package-paths'].split(','),
- resources: args['resources'].split(','),
+ resources: args['resources']
+ .split(',')
+ .where((s) => s.isNotEmpty)
+ .toList(),
vsm 2015/05/29 19:32:32 Before, we had [''] - which caused one bogus resou
inferDownwards: args['infer-downwards'],
inferFromOverrides: args['infer-from-overrides'],
inferTransitively: args['infer-transitively'],
« no previous file with comments | « lib/src/dependency_graph.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698