summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDavid Rodríguez <deivid.rodriguez@riseup.net>2019-09-24 11:27:46 +0200
committerDavid Rodríguez <deivid.rodriguez@riseup.net>2019-09-25 11:02:06 +0200
commit0e748fc10f4a284392dfdba1f18474afc63c88ef (patch)
treed8797ad638708b3f64550dc7b280850d08ead592 /lib
parenta707261552aae0f9a32edfb30f7bb32ce64e5d81 (diff)
downloadbundler-0e748fc10f4a284392dfdba1f18474afc63c88ef.tar.gz
Unify to a single `next` call
Diffstat (limited to 'lib')
-rw-r--r--lib/bundler/cli/outdated.rb4
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