Remove redundant code

This commit is contained in:
Marcus Kammer 2024-12-01 19:56:41 +01:00
parent a441f46aa2
commit 5aa8cbf24a
2 changed files with 7 additions and 9 deletions

View file

@ -2,7 +2,7 @@
(defsystem "dev.metalisp.survey"
:description "Create questionnaires and analyze the results."
:version "0.5.9"
:version "0.5.10"
:author "Marcus Kammer <marcus.kammer@metalisp.dev>"
:source-control (:git "git@git.sr.ht:~marcuskammer/dev.metalisp.survey")
:licence "MIT"

View file

@ -33,14 +33,12 @@
(declare (type questionnaire q))
"Load a Lisp file containing form definitions."
(let ((form-path (form-path q)))
(if (probe-file form-path)
(handler-case
(progn (load form-path) nil)
(file-error (e)
(warn "File error occurred: ~A" e))
(reader-error (e)
(warn "Syntax error occurred: ~A" e)))
(error "Form file ~A does not exist." form-path))))
(handler-case
(progn (load form-path) nil)
(file-error (e)
(warn "File error occurred: ~A" e))
(reader-error (e)
(warn "Syntax error occurred: ~A" e)))))
(defmacro with-form (&body body)
"Create a standardized HTML form wrapped in a <main> tag with a pre-defined