Skip to content

Commit

Permalink
check if data exist when handling inline/callback etc
Browse files Browse the repository at this point in the history
  • Loading branch information
merrickluo committed May 4, 2019
1 parent 2e42d2a commit 895271d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/morse/handlers.clj
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@

(defn update-fn [path handler-fn]
(fn [update]
(let [data (get-in update path)]
(if-let [data (get-in update path)]
(handler-fn data))))


Expand Down

0 comments on commit 895271d

Please sign in to comment.