summaryrefslogtreecommitdiff
path: root/lib/bundler/cli/update.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/bundler/cli/update.rb')
-rw-r--r--lib/bundler/cli/update.rb7
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