Skip to content

Commit ca5e288

Browse files
committed
style
1 parent 4f68e1c commit ca5e288

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/java_time/single_field.cljc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@
2222
(defn- get-only-unit-value ^long [^TemporalAmount a, ^TemporalUnit u]
2323
(let [non-zero-units
2424
(->> (.getUnits a)
25-
(map (fn [^TemporalUnit tu] (vector tu (.get a tu))))
26-
(filter (fn [[_ uv]] (not (zero? uv)))))
25+
(map (fn [^TemporalUnit tu] [tu (.get a tu)]))
26+
(remove (fn [[_ uv]] (zero? uv))))
2727
[our-unit our-value] (first (filter (fn [[tu]] (= tu u)) non-zero-units))]
2828
(when-not our-unit
2929
(let [msg (format "No unit: %s found in %s!" u a)]

0 commit comments

Comments
 (0)