Collapse load-hooks into one doseq.
This commit is contained in:
parent
9b22d6cdd7
commit
cc16a95a59
1 changed files with 2 additions and 5 deletions
|
@ -280,11 +280,8 @@
|
||||||
(throw e)))))
|
(throw e)))))
|
||||||
|
|
||||||
(defn- load-hooks [project & [ignore-missing?]]
|
(defn- load-hooks [project & [ignore-missing?]]
|
||||||
(doseq [hook-ns (plugin-hooks project)]
|
(doseq [hook-ns (concat (plugin-hooks project) (:hooks project))]
|
||||||
(load-hook hook-ns))
|
(load-hook hook-ns)))
|
||||||
(doseq [hook-ns (:hooks project)]
|
|
||||||
(or (load-hook hook-ns)
|
|
||||||
(utils/error "cannot resolve" hook-ns "hook"))))
|
|
||||||
|
|
||||||
(defn apply-middleware
|
(defn apply-middleware
|
||||||
([project]
|
([project]
|
||||||
|
|
Loading…
Reference in a new issue