Skip to content

Commit abf50f7

Browse files
authored
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 abf50f7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/ruby_http_client.rb

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

0 commit comments

Comments
 (0)