summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Rodríguez <deivid.rodriguez@riseup.net>2019-03-30 11:21:54 +0100
committerDavid Rodríguez <deivid.rodriguez@riseup.net>2019-07-15 20:37:53 +0200
commit8cdd6c37e64824bb71eafeca3c1c2331a618ba80 (patch)
tree133b763495bc8c0e2eb11f2a4d1ee77286f309e2
parent53bc81ecdf3e4a94c25a856c3227fb94d76c1769 (diff)
downloadbundler-8cdd6c37e64824bb71eafeca3c1c2331a618ba80.tar.gz
Remove redundant condition
This is inside a code branch where the condition is already met.
-rw-r--r--lib/bundler/cli.rb6
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/bundler/cli.rb b/lib/bundler/cli.rb
index dd733a22ed..18491b487b 100644
--- a/lib/bundler/cli.rb
+++ b/lib/bundler/cli.rb
@@ -414,10 +414,8 @@ module Bundler
map %w[cache] => :package
else
desc "cache [OPTIONS]", "Cache all the gems to vendor/cache", :hide => true
- unless Bundler.feature_flag.cache_command_is_package?
- method_option "all", :type => :boolean,
- :banner => "Include all sources (including path and git)."
- end
+ method_option "all", :type => :boolean,
+ :banner => "Include all sources (including path and git)."
method_option "all-platforms", :type => :boolean, :banner => "Include gems for all platforms present in the lockfile, not only the current one"
method_option "no-prune", :type => :boolean, :banner => "Don't remove stale gems from the cache."
def cache