Use defn instead of multimethod for load-as-edn
This commit is contained in:
parent
55d3438970
commit
a440fc47a6
2 changed files with 2 additions and 6 deletions
|
@ -38,7 +38,5 @@
|
|||
(defmethod load-resource :clj [resource-name]
|
||||
(slurp (io/resource resource-name)))
|
||||
|
||||
(defmulti load-as-edn dispatch-by-resource-name)
|
||||
|
||||
(defmethod load-as-edn :clj [resource-name]
|
||||
(defn load-as-edn [resource-name]
|
||||
(from-string (load-resource resource-name)))
|
|
@ -24,7 +24,5 @@
|
|||
|
||||
(defmulti load-resource dispatch-by-resource-name)
|
||||
|
||||
(defmulti load-as-edn dispatch-by-resource-name)
|
||||
|
||||
(defmethod load-as-edn :default [resource-name]
|
||||
(defn load-as-edn [resource-name]
|
||||
(from-string (load-resource resource-name)))
|
||||
|
|
Loading…
Reference in a new issue