diff options
author | David RodrÃguez <deivid.rodriguez@riseup.net> | 2019-09-24 11:27:46 +0200 |
---|---|---|
committer | David RodrÃguez <deivid.rodriguez@riseup.net> | 2019-09-25 11:02:06 +0200 |
commit | 0e748fc10f4a284392dfdba1f18474afc63c88ef (patch) | |
tree | d8797ad638708b3f64550dc7b280850d08ead592 /lib | |
parent | a707261552aae0f9a32edfb30f7bb32ce64e5d81 (diff) | |
download | bundler-0e748fc10f4a284392dfdba1f18474afc63c88ef.tar.gz |
Unify to a single `next` call
Diffstat (limited to 'lib')
-rw-r--r-- | lib/bundler/cli/outdated.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/bundler/cli/outdated.rb b/lib/bundler/cli/outdated.rb index ddc9271b95..e75a4c71be 100644 --- a/lib/bundler/cli/outdated.rb +++ b/lib/bundler/cli/outdated.rb @@ -79,8 +79,6 @@ module Bundler next unless gems.empty? || gems.include?(current_spec.name) active_spec = retrieve_active_spec(definition, current_spec) - - next if active_spec.nil? next if filter_options_patch.any? && !update_present_via_semver_portions(current_spec, active_spec, options) @@ -235,6 +233,8 @@ module Bundler end def update_present_via_semver_portions(current_spec, active_spec, options) + return false if active_spec.nil? + current_major = current_spec.version.segments.first active_major = active_spec.version.segments.first |