summaryrefslogtreecommitdiff
path: root/lib/bundler/cli/outdated.rb
diff options
context:
space:
mode:
authorDavid Rodríguez <deivid.rodriguez@riseup.net>2019-09-24 11:28:19 +0200
committerDavid Rodríguez <deivid.rodriguez@riseup.net>2019-09-25 11:02:06 +0200
commit0b8958164cf0ce07a8e5d691a409f6eeda18ba00 (patch)
treec4af3e5b2aa98cf6b9b3ef23f02df107008a4d50 /lib/bundler/cli/outdated.rb
parent0e748fc10f4a284392dfdba1f18474afc63c88ef (diff)
downloadbundler-0b8958164cf0ce07a8e5d691a409f6eeda18ba00.tar.gz
Merge condition to a single line
I think this kind of artificial line breaks are distracting.
Diffstat (limited to 'lib/bundler/cli/outdated.rb')
-rw-r--r--lib/bundler/cli/outdated.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/bundler/cli/outdated.rb b/lib/bundler/cli/outdated.rb
index e75a4c71be..25c0dc3ee5 100644
--- a/lib/bundler/cli/outdated.rb
+++ b/lib/bundler/cli/outdated.rb
@@ -79,8 +79,7 @@ module Bundler
next unless gems.empty? || gems.include?(current_spec.name)
active_spec = retrieve_active_spec(definition, current_spec)
- next if filter_options_patch.any? &&
- !update_present_via_semver_portions(current_spec, active_spec, options)
+ next if filter_options_patch.any? && !update_present_via_semver_portions(current_spec, active_spec, options)
gem_outdated = Gem::Version.new(active_spec.version) > Gem::Version.new(current_spec.version)
next unless gem_outdated || (current_spec.git_version != active_spec.git_version)