Skip to content
Snippets Groups Projects
Commit 8e80bf41 authored by Cam Saul's avatar Cam Saul
Browse files

slight performance improvement for HTTP client

parent 69034bb8
No related branches found
No related tags found
No related merge requests found
......@@ -143,8 +143,9 @@
(cond (sequential? response) (map auto-deserialize-dates response)
(map? response) (->> response
(map (fn [[k v]]
{k (if (contains? auto-deserialize-dates-keys k)
(deserialize-date v)
(auto-deserialize-dates v))}))
{k (cond
(contains? auto-deserialize-dates-keys k) (deserialize-date v)
(coll? v) (auto-deserialize-dates v)
:else v)}))
(into {}))
:else response))
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment