aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteven Blowers <shdblowers@gmail.com>2016-10-30 19:07:54 (GMT)
committerSteven Blowers <shdblowers@gmail.com>2016-10-30 19:07:54 (GMT)
commit663ef07a2768e0686108af88be949cc8b72110e2 (patch)
treee0a7fd3ca8620de2cf716f35f16ecf459b9f4526
parentaefb114037c6670b580c07f0c2ba1cdab4285bcb (diff)
downloadzendex-663ef07a2768e0686108af88be949cc8b72110e2.tar.gz
zendex-663ef07a2768e0686108af88be949cc8b72110e2.tar.xz
refactor to string appending
-rw-r--r--lib/zendex/search.ex5
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/zendex/search.ex b/lib/zendex/search.ex
index d38fd4c..95c0a69 100644
--- a/lib/zendex/search.ex
+++ b/lib/zendex/search.ex
@@ -14,10 +14,7 @@ defmodule Zendex.Search do
search_string = create_search_string(query)
sort_string = create_sort_string(sort_by, sort_order)
- connection.base_url
- |> Kernel.<>(@url)
- |> Kernel.<>(search_string)
- |> Kernel.<>(sort_string)
+ "#{connection.base_url}#{@url}#{search_string}#{sort_string}"
|> @http_client.get!(CommonHelpers.get_headers(connection.authentication))
|> CommonHelpers.decode_response
end