s/when/if (ugh)

This commit is contained in:
niten 2023-05-22 12:46:41 -07:00
parent 8a26333322
commit 6ff2823f55
1 changed files with 10 additions and 10 deletions

View File

@ -27,14 +27,14 @@
(throw (ex-info (format "missing required argument: %s" arg) (throw (ex-info (format "missing required argument: %s" arg)
{:arg arg})))) {:arg arg}))))
(let [urgency-lvl (get urgencies urgency)] (let [urgency-lvl (get urgencies urgency)]
(when (nil? urgency-lvl) (if (nil? urgency-lvl)
(throw (ex-info (format "bad urgency level: %s" urgency) {})) (throw (ex-info (format "bad urgency level: %s" urgency) {}))
(.Notify bus (.Notify bus
app app
(UInt32. replace-id) (UInt32. replace-id)
icon icon
summary summary
body body
actions actions
{ "urgency" urgency-lvl } { "urgency" urgency-lvl }
timeout)))) timeout))))