Skip to content

Commit a8ae5d6

Browse files
committed
Fix frozen string literal issue
To prepare for ruby 3.4.0 and making strings frozen by default, we add `+` operator to make the string mutable
1 parent 4c9405c commit a8ae5d6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/ruby_http_client.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ def build_args(args)
184184
# - The final url string
185185
#
186186
def build_url(query_params: nil)
187-
url = [add_version(''), *@url_path].join('/')
187+
url = [add_version(+''), *@url_path].join('/')
188188
url = build_query_params(url, query_params) if query_params
189189
URI.parse("#{@host}#{url}")
190190
end

0 commit comments

Comments
 (0)