Skip to content

Commit d1dbfe1

Browse files
committed
Prefer frozen empty string.
1 parent 08051c3 commit d1dbfe1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/async/http/faraday/adapter.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ def with_timeout(task: Async::Task.current)
241241

242242
def encoded_body(response)
243243
body = response.read
244-
return +"" if body.nil?
244+
return "" if body.nil?
245245
content_type = response.headers["content-type"]
246246
return body unless content_type
247247
params = extract_type_parameters(content_type)

0 commit comments

Comments
 (0)