From 3d6dd20469ef0e068e9678c89d16f7a6cd17b64d Mon Sep 17 00:00:00 2001 From: Andrew Kane Date: Thu, 11 Dec 2025 16:28:45 -0800 Subject: [PATCH] Removed unneeded check --- src/hnswutils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hnswutils.c b/src/hnswutils.c index 64f449e..f4e4d82 100644 --- a/src/hnswutils.c +++ b/src/hnswutils.c @@ -928,7 +928,7 @@ HnswSearchLayer(char *base, HnswQuery * q, List *ep, int ef, int lc, Relation in continue; } - if (eElement == NULL || !(eDistance < f->distance || alwaysAdd)) + if (!(eDistance < f->distance || alwaysAdd)) { if (discarded != NULL) {