Skip to content

Commit 8142b36

Browse files
authored
simplify maps to json lines (#32)
1 parent 0bfe677 commit 8142b36

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/typesense/util.clj

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,7 @@
1919
"Take a vector of maps and returns json-line format.
2020
Returns an empty string if the vector is empty."
2121
[ms]
22-
(->> ms
23-
(map #(str (json/write-str %) \newline))
24-
str/join))
22+
(str/join (map #(str (json/write-str %) \newline) ms)))
2523

2624
(defn json->map
2725
"Transforms json to a map.

0 commit comments

Comments
 (0)