diff options
| author | 2023-07-26 13:07:08 +0200 | |
|---|---|---|
| committer | 2023-07-26 13:07:08 +0200 | |
| commit | 9cdbf0175d5d1c18f936d81a98ef696ee8de7b6f (patch) | |
| tree | 60e688f2c265cec5d1cd12d83ce3cfc689caa842 | |
| parent | add url to project.janet (diff) | |
fix #2
I actually had this fixed locally for almost a month, but forgot to
commit and push it.
Thanks for reminding me @pepe!
| -rw-r--r-- | date/init.janet | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/date/init.janet b/date/init.janet index 215b019..45d5209 100644 --- a/date/init.janet +++ b/date/init.janet @@ -41,10 +41,11 @@ (map fun) from-pairs)) +(def- some? (complement nil?)) (defn- put-date [ds key val] (assert (tm? ds)) - (assert val) + (assert (some? val)) (if (callable? val) (update ds key val) (put ds key val))) |
