diff options
author | Samuel Giddins <segiddins@segiddins.me> | 2016-01-14 16:21:54 -0600 |
---|---|---|
committer | Samuel Giddins <segiddins@segiddins.me> | 2016-01-31 22:21:13 -0600 |
commit | e85b990916f16dd9a56dbafae6503f7a48d55131 (patch) | |
tree | f9244f2ab14db6abf5c0bc38ee5508ccfc94aa30 /lib/bundler/cli/update.rb | |
parent | 9297bcf0135a0bd8c1df29b929267582ca66217d (diff) | |
download | bundler-e85b990916f16dd9a56dbafae6503f7a48d55131.tar.gz |
[RuboCop] Address Style/GuardClause
Diffstat (limited to 'lib/bundler/cli/update.rb')
-rw-r--r-- | lib/bundler/cli/update.rb | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/bundler/cli/update.rb b/lib/bundler/cli/update.rb index 62abc13b58..0102bf0e1a 100644 --- a/lib/bundler/cli/update.rb +++ b/lib/bundler/cli/update.rb @@ -63,10 +63,9 @@ module Bundler private def without_groups_messages - if Bundler.settings.without.any? - require "bundler/cli/common" - Bundler.ui.confirm Bundler::CLI::Common.without_groups_message - end + return unless Bundler.settings.without.any? + require "bundler/cli/common" + Bundler.ui.confirm Bundler::CLI::Common.without_groups_message end end end |