mirror of
https://github.com/vale981/lack
synced 2025-03-05 09:21:39 -05:00
Delete otherwise clause because there's no possibility that any other types come as a middleware.
This commit is contained in:
parent
735cb1eee6
commit
4891bfd388
1 changed files with 2 additions and 3 deletions
|
@ -35,7 +35,7 @@
|
|||
(defun convert-to-middleware-form (mw)
|
||||
(let ((app (gensym "APP"))
|
||||
(res-mw (gensym "RES-MW")))
|
||||
(typecase mw
|
||||
(etypecase mw
|
||||
(null)
|
||||
(function mw)
|
||||
(keyword `(find-middleware ,mw))
|
||||
|
@ -70,8 +70,7 @@
|
|||
(apply ,res-mw ,app (cdr ,res))))
|
||||
,res))
|
||||
(otherwise ,res))))))
|
||||
(otherwise mw)))
|
||||
(otherwise mw))))
|
||||
(otherwise mw))))))
|
||||
|
||||
(defmacro builder (&rest app-or-middlewares)
|
||||
(let ((middlewares (butlast app-or-middlewares)))
|
||||
|
|
Loading…
Add table
Reference in a new issue