mirror of
https://github.com/status-im/re-frame.git
synced 2025-02-23 15:28:09 +00:00
improve comments
This commit is contained in:
parent
e5a4e9b525
commit
48e058f6dc
@ -24,7 +24,7 @@
|
||||
(vector? v) (let [v (remove nil? (flatten v))]
|
||||
(cond
|
||||
(empty? v) (fn [h] h) ;; noop middleware
|
||||
(= 1 (count v)) (first v)
|
||||
(= 1 (count v)) (first v) ;; only one middleware, no composing needed
|
||||
:else (apply comp v)))
|
||||
:else (assert (vector? v)
|
||||
(str "re-frame: compose expects a vector, got: " v))))
|
||||
|
Loading…
x
Reference in New Issue
Block a user