mirror of
https://github.com/metosin/reitit.git
synced 2025-12-17 00:11:11 +00:00
j.u.HashMap fails with nil
This commit is contained in:
parent
16116d3e58
commit
39bc633576
1 changed files with 1 additions and 1 deletions
|
|
@ -161,7 +161,7 @@
|
|||
:cljs [[a k v] (assoc a k v)]))
|
||||
|
||||
(defn fast-map [m]
|
||||
#?@(:clj [(java.util.HashMap. m)]
|
||||
#?@(:clj [(java.util.HashMap. (or m {}))]
|
||||
:cljs [m]))
|
||||
|
||||
(defn fast-get
|
||||
|
|
|
|||
Loading…
Reference in a new issue