Skip to content

Commit

Permalink
De-paren Java field refs to appease Kondo linting (#10)
Browse files Browse the repository at this point in the history
  • Loading branch information
tsmacdonald committed Mar 20, 2024
1 parent f66e9fa commit 1efab38
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/second_date/common.clj
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,14 @@
conversions, turning `ID` into `ıd`, in the Turkish locale. This function always uses the `en-US` locale."
^String [s]
(when s
(.toLowerCase (str s) (Locale/US))))
(.toLowerCase (str s) Locale/US)))

(defn upper-case-en
"Locale-agnostic version of [[clojure.string/upper-case]]. [[clojure.string/upper-case]] uses the default locale in
conversions, turning `id` into `İD`, in the Turkish locale. This function always uses the `en-US` locale."
^String [s]
(when s
(.toUpperCase (str s) (Locale/US))))
(.toUpperCase (str s) Locale/US)))

(defprotocol CoerceToLocale
"Protocol for anything that can be coerced to a `java.util.Locale`."
Expand Down

0 comments on commit 1efab38

Please sign in to comment.