mirror of
https://github.com/penpot/penpot.git
synced 2025-06-13 19:01:39 +02:00
Remove useless predicate for check date instance.
This commit is contained in:
parent
81e90ddf9d
commit
e21fe53ce6
4 changed files with 8 additions and 8 deletions
|
@ -22,7 +22,7 @@
|
|||
"
|
||||
([v] (format v :iso))
|
||||
([v fmt]
|
||||
{:pre [(inst?? v)]}
|
||||
{:pre [(inst? v)]}
|
||||
(case fmt
|
||||
:offset (.getTime v)
|
||||
:iso (.format dateFns v)
|
||||
|
@ -35,5 +35,5 @@
|
|||
|
||||
(defn timeago
|
||||
[v]
|
||||
{:pre [(inst?? v)]}
|
||||
{:pre [(inst? v)]}
|
||||
(.distanceInWordsToNow dateFns v))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue