Use defn instead of multimethod for load-as-edn

This commit is contained in:
bom 2022-11-18 10:38:39 +01:00
parent 55d3438970
commit a440fc47a6
2 changed files with 2 additions and 6 deletions

View file

@ -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)))

View file

@ -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)))