summaryrefslogtreecommitdiff
path: root/lib/bundler/cli.rb
diff options
context:
space:
mode:
authorDavid Rodríguez <deivid.rodriguez@riseup.net>2019-03-30 11:21:54 +0100
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2019-08-03 09:29:58 +0900
commitad3cba02cfa9140e2318632e6cc40dad4e79f959 (patch)
tree885c3d586a8741ce186ece9e9961c416c069ef7c /lib/bundler/cli.rb
parent31541d738924e714e9b580b33eb44608ea248486 (diff)
[bundler/bundler] Remove redundant condition
This is inside a code branch where the condition is already met. https://github.com/bundler/bundler/commit/8cdd6c37e6
Diffstat (limited to 'lib/bundler/cli.rb')
-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