fukamachi / lack

Lack, the core of Clack

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

clack-middleware-symbol-p always returns nil

hxzrx opened this issue · comments

Hi!

When I hacked into lack, I found that the function clack-middleware-symbol-p in file ./lack/src/builder.lisp always returned NIL as the package clack.middleware was not defined anywhere. This package was also used in other lines in this file.

The original function was pasted here:

(defun clack-middleware-symbol-p (symbol)
  (and (symbolp symbol)
       (find-package :clack.middleware)
       (find-class symbol nil)
       (subtypep (find-class symbol)
                 (intern (string :<middleware>)
                         :clack.middleware))))

Thanks.

It seemed that these lines were utilized to deal with old middlewares which would not be used anymore.