aboutsummaryrefslogtreecommitdiffstats
path: root/lib
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
parent0046c67dd8d56960de6579ba05cac622412c6d54 (diff)
downloadruby-16a97c7bbb5ef04da58e7136830b57707b5fc2ad.tar.gz
[rubygems/rubygems] 🚨 Rubocop Linting
https://github.com/rubygems/rubygems/commit/2851e051c3
Diffstat (limited to 'lib')
-rw-r--r--lib/bundler/cli/info.rb2
-rw-r--r--lib/bundler/retry.rb2
2 files changed, 2 insertions, 2 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)
diff --git a/lib/bundler/retry.rb b/lib/bundler/retry.rb
index 2415ade200..b95c42c361 100644
--- a/lib/bundler/retry.rb
+++ b/lib/bundler/retry.rb
@@ -56,7 +56,7 @@ module Bundler
def keep_trying?
return true if current_run.zero?
return false if last_attempt?
- return true if @failed
+ true if @failed
end
def last_attempt?