Fix type checking
This commit is contained in:
parent
799d351917
commit
1f94736771
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Reference in a new issue