diff options
author | David RodrÃguez <deivid.rodriguez@riseup.net> | 2023-11-08 12:30:55 +0100 |
---|---|---|
committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2023-11-09 10:34:48 +0900 |
commit | d9ac2d91e051201657e58f7860234fc09f4dfc48 (patch) | |
tree | 909d3ca13b65b401c1495f96672b00b70561c0d7 | |
parent | 5c8d2c2d4594a630187702f96e4de75aa5a31fa8 (diff) |
[rubygems/rubygems] Remove unused logic
https://github.com/rubygems/rubygems/commit/2eb2860e9e
-rw-r--r-- | spec/bundler/support/artifice/fail.rb | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/spec/bundler/support/artifice/fail.rb b/spec/bundler/support/artifice/fail.rb index 6286e43fbd..a6a8552893 100644 --- a/spec/bundler/support/artifice/fail.rb +++ b/spec/bundler/support/artifice/fail.rb @@ -17,9 +17,7 @@ class Fail < Net::HTTP end def exception(req) - name = ENV.fetch("BUNDLER_SPEC_EXCEPTION") { "Errno::ENETUNREACH" } - const = name.split("::").reduce(Object) {|mod, sym| mod.const_get(sym) } - const.new("host down: Bundler spec artifice fail! #{req["PATH_INFO"]}") + Errno::ENETUNREACH.new("host down: Bundler spec artifice fail! #{req["PATH_INFO"]}") end end |