Skip to content
This repository was archived by the owner on Mar 31, 2025. It is now read-only.

Commit 22b3e2d

Browse files
committed
Avoid params mutation
1 parent 975d902 commit 22b3e2d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/helpers/query_helper.cr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module Helpers::QueryHelper
22
def to_query(**query)
3-
current_params = params.to_h
3+
current_params = params.to_h.dup
44
query.each { |k, v| current_params[k.to_s] = v.to_s }
55
HTTP::Params.encode current_params
66
end

0 commit comments

Comments
 (0)