Clarify the code.

(unless (remove-if-not ...)) reads better as (when (notany ...)) so rewrite
the test that way. For reference and context see #563.
This commit is contained in:
Dimitri Fontaine 2017-06-08 13:39:38 +02:00
parent 776f8fcf6f
commit d74c9625a3

View File

@ -122,7 +122,7 @@
;;;
(defun add-unlisted-primary-key-index (table)
"Add to TABLE any unlisted primary key index..."
(unless (remove-if-not #'index-primary (table-index-list table))
(when (notany #'index-primary (table-index-list table))
(let ((pk-fields (loop :for field :in (table-field-list table)
:when (< 0 (coldef-pk-id field))
:collect field)))