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

Unified Diff: lib/src/command/global_activate.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/deps.dart ('k') | lib/src/command/lish.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/command/global_activate.dart
diff --git a/lib/src/command/global_activate.dart b/lib/src/command/global_activate.dart
index 5c389fad664e7ca848875b51fc8ac1fbc9cf6d27..0183d70267c31f6bd4198096e9ac83ebb263ef8d 100644
--- a/lib/src/command/global_activate.dart
+++ b/lib/src/command/global_activate.dart
@@ -35,13 +35,13 @@ class GlobalActivateCommand extends PubCommand {
Future run() {
// Default to `null`, which means all executables.
- var executables;
+ List<String> executables;
if (argResults.wasParsed("executable")) {
if (argResults.wasParsed("no-executables")) {
usageException("Cannot pass both --no-executables and --executable.");
}
- executables = argResults["executable"];
+ executables = argResults["executable"] as List<String>;
} else if (argResults["no-executables"]) {
// An empty list means no executables.
executables = [];
« no previous file with comments | « lib/src/command/deps.dart ('k') | lib/src/command/lish.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698