Clarify comment

This commit is contained in:
Mike Thompson 2017-07-23 13:08:44 +10:00
parent 9e710d175d
commit 66d887c55b
1 changed files with 3 additions and 3 deletions

View File

@ -26,9 +26,9 @@
([kind id required?] ([kind id required?]
(let [handler (get-handler kind id)] (let [handler (get-handler kind id)]
(when debug-enabled? ;; This is in a separate when so Closure DCE can run (when debug-enabled? ;; This is in a separate when so Closure DCE can run ...
(when (and required? (nil? handler)) ;; Otherwise you'd need to type hint the and with a ^boolean for DCE. (when (and required? (nil? handler)) ;; ...otherwise you'd need to type hint the `and` with a ^boolean for DCE.
(console :error "re-frame: no " (str kind) " handler registered for:" id))) (console :error "re-frame: no " (str kind) " handler registered for: " id)))
handler))) handler)))