diff options
author | Josh Nichols <josh.nichols@gusto.com> | 2023-08-11 19:04:18 -0400 |
---|---|---|
committer | git <svn-admin@ruby-lang.org> | 2023-08-16 01:40:08 +0000 |
commit | 4165ec91d87ff1fcb41e312d896bea8a678c9bab (patch) | |
tree | 28d4452d6617d108685eafa7d76380b9041de847 /lib | |
parent | 2fbd8dca18a102cb3ffc5e7e6235c09fd0d04ba3 (diff) | |
download | ruby-4165ec91d87ff1fcb41e312d896bea8a678c9bab.tar.gz |
[ruby/net-http] update net/http/response to be frozen string literal
https://github.com/ruby/net-http/commit/dc3b4a75ca
Diffstat (limited to 'lib')
-rw-r--r-- | lib/net/http/response.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/net/http/response.rb b/lib/net/http/response.rb index 1d83935c10..ac465cc64a 100644 --- a/lib/net/http/response.rb +++ b/lib/net/http/response.rb @@ -1,4 +1,4 @@ -# frozen_string_literal: false +# frozen_string_literal: true # This class is the base class for \Net::HTTP response classes. # @@ -273,7 +273,7 @@ class Net::HTTPResponse def error! #:nodoc: message = @code - message += ' ' + @message.dump if @message + message += " #{@message.dump}" if @message raise error_type().new(message, self) end @@ -648,7 +648,7 @@ class Net::HTTPResponse if block Net::ReadAdapter.new(block) else - dest || '' + dest || String.new end end |