Skip to content

Commit a5003aa

Browse files
committed
optimize
1 parent 206c71d commit a5003aa

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/java_time/core.clj

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -174,8 +174,8 @@
174174
([x y] (single-before? x y))
175175
([x y & more]
176176
(if (before? x y)
177-
(if (next more)
178-
(recur y (first more) (next more))
177+
(if-some [n (next more)]
178+
(recur y (first more) n)
179179
(before? y (first more)))
180180
false)))
181181

@@ -195,8 +195,8 @@
195195
([x y] (single-after? x y))
196196
([x y & more]
197197
(if (after? x y)
198-
(if (next more)
199-
(recur y (first more) (next more))
198+
(if-some [n (next more)]
199+
(recur y (first more) n)
200200
(after? y (first more)))
201201
false)))
202202

0 commit comments

Comments
 (0)