Skip to content

Commit a905aea

Browse files
2 parents 60f43e6 + 21e909d commit a905aea

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/code/object/http.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -206,9 +206,9 @@ def self.code_fetch(*arguments, redirects: 10)
206206
::Net::OpenTimeout,
207207
::Net::ReadTimeout,
208208
::Errno::ETIMEDOUT
209-
raise(::Code::Error.new("http timeout"))
209+
raise ::Code::Error, "http timeout"
210210
rescue OpenSSL::SSL::SSLError, IOError, EOFError
211-
raise(::Code::Error.new("http error"))
211+
raise ::Code::Error, "http error"
212212
end
213213

214214
code = response.code.to_i

0 commit comments

Comments
 (0)