Merge pull request #84 from ducky427/patch-1

Minor code cleanup
This commit is contained in:
Daniel Compton 2015-07-25 07:44:22 +12:00
commit b566c08f40
1 changed files with 3 additions and 3 deletions

View File

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