mirror of
https://github.com/dimitri/pgloader.git
synced 2025-08-08 07:16:58 +02:00
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:
parent
776f8fcf6f
commit
d74c9625a3
@ -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)))
|
||||
|
Loading…
Reference in New Issue
Block a user