Minor code cleanup

This commit is contained in:
Ducky 2015-07-16 17:25:54 +01:00
parent 2ba8914d8d
commit fc9da0d13a
1 changed files with 3 additions and 3 deletions

View File

@ -114,9 +114,9 @@
^{:re-frame-factory-name "path"} ^{:re-frame-factory-name "path"}
(fn path (fn path
[& args] [& args]
(let [path (flatten args) (let [path (flatten args)]
_ (if (empty? path) (when (empty? path)
(error "re-frame: \"path\" middleware given no params."))] (error "re-frame: \"path\" middleware given no params."))
(fn path-middleware (fn path-middleware
[handler] [handler]
(fn path-handler (fn path-handler