mirror of
https://github.com/penpot/penpot.git
synced 2025-06-01 12:11:39 +02:00
♻️ Improve the asserts framework
This commit is contained in:
parent
c02e8ff883
commit
98190ed92d
2 changed files with 88 additions and 61 deletions
|
@ -111,11 +111,11 @@
|
|||
;; --- Helper Functions
|
||||
|
||||
(defn ^boolean check-browser? [candidate]
|
||||
(us/verify ::browser candidate)
|
||||
(us/verify! ::browser candidate)
|
||||
(= candidate @browser))
|
||||
|
||||
(defn ^boolean check-platform? [candidate]
|
||||
(us/verify ::platform candidate)
|
||||
(us/verify! ::platform candidate)
|
||||
(= candidate @platform))
|
||||
|
||||
(defn resolve-profile-photo-url
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue