diff options
| author | David RodrÃguez <deivid.rodriguez@riseup.net> | 2019-09-24 11:11:05 +0200 |
|---|---|---|
| committer | David RodrÃguez <deivid.rodriguez@riseup.net> | 2019-09-25 11:02:05 +0200 |
| commit | 1b70ddba2e9607f4f25ac2e227a15e3cd5d84a21 (patch) | |
| tree | ca5fde6514aa3b6f3a124ee924ae1601667df29e /lib/bundler | |
| parent | 38eab3a3768966bafa71ddaf18378aeba3a53ca7 (diff) | |
| download | bundler-1b70ddba2e9607f4f25ac2e227a15e3cd5d84a21.tar.gz | |
`unless` is much more readable than `if` here
Diffstat (limited to 'lib/bundler')
| -rw-r--r-- | lib/bundler/cli/outdated.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bundler/cli/outdated.rb b/lib/bundler/cli/outdated.rb index b7d9b77d5e..d3c68bb45a 100644 --- a/lib/bundler/cli/outdated.rb +++ b/lib/bundler/cli/outdated.rb @@ -115,7 +115,7 @@ module Bundler next if gems.nil? contains_group = groups.split(", ").include?(options[:group]) - next if !options[:groups] && !contains_group + next unless options[:groups] || contains_group unless options[:parseable] Bundler.ui.info(header_group_message(groups)) |
