Skip to content

Commit

Permalink
[ruby/net-http] update net/http/response to be frozen string literal
Browse files Browse the repository at this point in the history
  • Loading branch information
technicalpickles authored and matzbot committed Aug 16, 2023
1 parent 2fbd8dc commit 4165ec9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions 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.
#
Expand Down Expand Up @@ -273,7 +273,7 @@ def code_type #:nodoc:

def error! #:nodoc:
message = @code
message += ' ' + @message.dump if @message
message += " #{@message.dump}" if @message
raise error_type().new(message, self)
end

Expand Down Expand Up @@ -648,7 +648,7 @@ def procdest(dest, block)
if block
Net::ReadAdapter.new(block)
else
dest || ''
dest || String.new
end
end

Expand Down

0 comments on commit 4165ec9

Please sign in to comment.