From 6ff2823f55812d527ce6fd022caf78a438afb371 Mon Sep 17 00:00:00 2001 From: niten Date: Mon, 22 May 2023 12:46:41 -0700 Subject: [PATCH] s/when/if (ugh) --- src/clj/notifier/core.clj | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/src/clj/notifier/core.clj b/src/clj/notifier/core.clj index 19551fc..1099815 100644 --- a/src/clj/notifier/core.clj +++ b/src/clj/notifier/core.clj @@ -27,14 +27,14 @@ (throw (ex-info (format "missing required argument: %s" arg) {:arg arg})))) (let [urgency-lvl (get urgencies urgency)] - (when (nil? urgency-lvl) + (if (nil? urgency-lvl) (throw (ex-info (format "bad urgency level: %s" urgency) {})) - (.Notify bus - app - (UInt32. replace-id) - icon - summary - body - actions - { "urgency" urgency-lvl } - timeout)))) + (.Notify bus + app + (UInt32. replace-id) + icon + summary + body + actions + { "urgency" urgency-lvl } + timeout))))