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

Unified Diff: utils/pub/command_uploader.dart

Issue 12042053: Get rid of unneeded Future.immediate() calls. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 11 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 | utils/pub/entrypoint.dart » ('j') | utils/pub/entrypoint.dart » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: utils/pub/command_uploader.dart
diff --git a/utils/pub/command_uploader.dart b/utils/pub/command_uploader.dart
index eb3cd4ac0f0a685429a09efc37d590d82158c646..1e184a3194360eea584f58d60cfeee17cc06ac95 100644
--- a/utils/pub/command_uploader.dart
+++ b/utils/pub/command_uploader.dart
@@ -60,7 +60,7 @@ class UploaderCommand extends PubCommand {
return new Future.immediate(null).then((_) {
var package = commandOptions['package'];
- if (package != null) return new Future.immediate(package);
+ if (package != null) return package;
return Entrypoint.load(path.current, cache)
.then((entrypoint) => entrypoint.root.name);
}).then((package) {
« no previous file with comments | « no previous file | utils/pub/entrypoint.dart » ('j') | utils/pub/entrypoint.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698