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

Unified Diff: lib/src/command/serve.dart

Issue 2184303002: Make pub strong-mode clean. (Closed) Base URL: git@github.com:dart-lang/pub.git@master
Patch Set: Code review changes Created 4 years, 5 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/command/list_package_dirs.dart ('k') | lib/src/command_runner.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/command/serve.dart
diff --git a/lib/src/command/serve.dart b/lib/src/command/serve.dart
index 1094b491669e5033d00a9c92ed3f1a1f9da750f5..9052d7c3ba07e66ee5e49ad679122144a4a7c5bc 100644
--- a/lib/src/command/serve.dart
+++ b/lib/src/command/serve.dart
@@ -86,7 +86,8 @@ class ServeCommand extends BarbackCommand {
var watcherType = argResults['force-poll'] ?
WatcherType.POLLING : WatcherType.AUTO;
- var environmentConstants = new Map.fromIterable(argResults["define"],
+ var environmentConstants = new Map<String, String>.fromIterable(
+ argResults["define"],
key: (pair) => pair.split("=").first,
value: (pair) => pair.split("=").last);
« no previous file with comments | « lib/src/command/list_package_dirs.dart ('k') | lib/src/command_runner.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698