Fix type checking

This commit is contained in:
Marcus Kammer 2024-06-02 13:31:06 +02:00
parent 799d351917
commit 1f94736771
Signed by: marcuskammer
GPG key ID: C374817BE285268F

View file

@ -34,7 +34,7 @@
(make-db-path (today) "-surveys-db.lisp")) (make-db-path (today) "-surveys-db.lisp"))
(defun load-response (db) (defun load-response (db)
(check-type db string) (check-type db (or string pathname))
(with-open-file (stream db (with-open-file (stream db
:direction :input :direction :input
:if-does-not-exist :create) :if-does-not-exist :create)
@ -43,7 +43,7 @@
(read stream)))) (read stream))))
(defun store-response (db responses) (defun store-response (db responses)
(check-type db string) (check-type db (or string pathname))
(check-type responses list) (check-type responses list)
(with-open-file (stream db (with-open-file (stream db
:direction :output :direction :output