[rubygems/rubygems] Enabled Style/RedundantReturn cop

05cc97bdf8
This commit is contained in:
Hiroshi SHIBATA 2023-03-23 10:16:17 +09:00
parent 19e9c4004b
commit 2e3cd1dc3e
Notes: git 2023-03-23 08:19:21 +00:00
26 changed files with 43 additions and 45 deletions

View file

@ -142,7 +142,7 @@ module Kernel
end
RUBYGEMS_ACTIVATION_MONITOR.exit
return gem_original_require(path)
gem_original_require(path)
rescue LoadError => load_error
if load_error.path == path
RUBYGEMS_ACTIVATION_MONITOR.enter