diff options
author | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2023-03-23 10:16:17 +0900 |
---|---|---|
committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2023-03-23 17:18:49 +0900 |
commit | 2e3cd1dc3e30f4725b18032b85a36f208c9528bc (patch) | |
tree | 03b319dd2a715c27aa7ca25a892df86aa956416e /lib/bundler/installer/gem_installer.rb | |
parent | 19e9c4004b9d137ad48757f3f4c2d92257e6c2c4 (diff) | |
download | ruby-2e3cd1dc3e30f4725b18032b85a36f208c9528bc.tar.gz |
[rubygems/rubygems] Enabled Style/RedundantReturn cop
https://github.com/rubygems/rubygems/commit/05cc97bdf8
Diffstat (limited to 'lib/bundler/installer/gem_installer.rb')
-rw-r--r-- | lib/bundler/installer/gem_installer.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/bundler/installer/gem_installer.rb b/lib/bundler/installer/gem_installer.rb index 9a013eea4d..c855c7afa0 100644 --- a/lib/bundler/installer/gem_installer.rb +++ b/lib/bundler/installer/gem_installer.rb @@ -16,13 +16,13 @@ module Bundler post_install_message = install Bundler.ui.debug "#{worker}: #{spec.name} (#{spec.version}) from #{spec.loaded_from}" generate_executable_stubs - return true, post_install_message + [true, post_install_message] rescue Bundler::InstallHookError, Bundler::SecurityError, Bundler::APIResponseMismatchError raise rescue Errno::ENOSPC - return false, out_of_space_message + [false, out_of_space_message] rescue Bundler::BundlerError, Gem::InstallError, Bundler::APIResponseInvalidDependenciesError => e - return false, specific_failure_message(e) + [false, specific_failure_message(e)] end private |