1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

[bundler/bundler] Remove redundant condition

This is inside a code branch where the condition is already met.

https://github.com/bundler/bundler/commit/8cdd6c37e6
This commit is contained in:
David Rodríguez 2019-03-30 11:21:54 +01:00 committed by Hiroshi SHIBATA
parent 31541d7389
commit ad3cba02cf
No known key found for this signature in database
GPG key ID: F9CF13417264FAC2

View file

@ -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