Skip to content

Commit e662279

Browse files
committed
style
1 parent 2a86c65 commit e662279

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/java_time/format.clj

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -59,11 +59,9 @@
5959
(string? fmt) (.. (get-case-formatter case)
6060
(appendPattern fmt)
6161
toFormatter)
62-
:else (get predefined-formatters (name fmt)))
63-
fmt (if resolver-style
64-
(.withResolverStyle fmt (get-resolver-style resolver-style))
65-
fmt)]
66-
fmt)))
62+
:else (get predefined-formatters (name fmt)))]
63+
(cond-> fmt
64+
resolver-style (.withResolverStyle (get-resolver-style resolver-style))))))
6765

6866
(defn format
6967
"Formats the given time entity as a string.

0 commit comments

Comments
 (0)