Skip to content
Snippets Groups Projects
Commit aa13c622 authored by Andres Gomez Urquiza's avatar Andres Gomez Urquiza
Browse files

Use when-not instead of if-not if there's no else clause

parent b3cd24eb
No related branches found
No related tags found
No related merge requests found
......@@ -92,7 +92,7 @@
(let [results (for [card cards]
(execute-card (:id card)))
channel-ids (or channel-ids (mapv :id (:channels pulse)))]
(if-not (and skip_if_empty (are-all-cards-empty? results))
(when-not (and skip_if_empty (are-all-cards-empty? results))
(doseq [channel-id channel-ids]
(let [{:keys [channel_type details recipients]} (some #(when (= channel-id (:id %)) %)
(:channels pulse))]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment