summaryrefslogtreecommitdiff
path: root/lib/bundler/cli
diff options
context:
space:
mode:
authorPeter Boling <peter.boling@gmail.com>2023-09-14 11:58:21 +0700
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2023-10-03 16:13:18 +0900
commit16a97c7bbb5ef04da58e7136830b57707b5fc2ad (patch)
tree7f70ff30bc4c240a19585be46e2a5d4ca6cc4820 /lib/bundler/cli
parent0046c67dd8d56960de6579ba05cac622412c6d54 (diff)
[rubygems/rubygems] 🚨 Rubocop Linting
https://github.com/rubygems/rubygems/commit/2851e051c3
Diffstat (limited to 'lib/bundler/cli')
-rw-r--r--lib/bundler/cli/info.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bundler/cli/info.rb b/lib/bundler/cli/info.rb
index 36c7a58f12..3facde1947 100644
--- a/lib/bundler/cli/info.rb
+++ b/lib/bundler/cli/info.rb
@@ -33,7 +33,7 @@ module Bundler
def default_gem_spec(gem_name)
return unless Gem::Specification.respond_to?(:find_all_by_name)
gem_spec = Gem::Specification.find_all_by_name(gem_name).last
- return gem_spec if gem_spec&.default_gem?
+ gem_spec if gem_spec&.default_gem?
end
def spec_not_found(gem_name)