From 72eb100fd61c24b08aa796d1f76e9f669ebbd94e Mon Sep 17 00:00:00 2001 From: Marcus Kammer Date: Sun, 21 Apr 2024 11:21:46 +0200 Subject: [PATCH] Optimize readbility --- src/component/form.lisp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/component/form.lisp b/src/component/form.lisp index 3f7b370..a9fd1bf 100644 --- a/src/component/form.lisp +++ b/src/component/form.lisp @@ -76,9 +76,9 @@ defaults to an empty action, \"html-form\" as name and \"post\" as method. BODY: The body of the form, which generally includes form elements such as input fields, checkboxes, radio buttons, etc." `(spinneret:with-html - (:form ,@(if (not (null attr)) - attr - (list :action "" :name "html-form" :method "post")) + (:form ,@(if (null attr) + (list :action "" :name "html-form" :method "post") + attr) (:fieldset (:legend ,legend) ,@body))))