This is an automated email from the ASF dual-hosted git repository.

jerry-024 pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/paimon-vector-index.git


The following commit(s) were added to refs/heads/main by this push:
     new 6374d05  fix: satisfy collapsible else-if lint (#69)
6374d05 is described below

commit 6374d05c6226a0495c621c81d9207cdeb2186051
Author: jerry <[email protected]>
AuthorDate: Wed Aug 5 10:12:32 2026 +0800

    fix: satisfy collapsible else-if lint (#69)
---
 core/src/diskann_io.rs | 10 ++++------
 1 file changed, 4 insertions(+), 6 deletions(-)

diff --git a/core/src/diskann_io.rs b/core/src/diskann_io.rs
index bb20884..e2106cf 100644
--- a/core/src/diskann_io.rs
+++ b/core/src/diskann_io.rs
@@ -2979,12 +2979,10 @@ fn validate_adjacency_index(header: &DiskAnnHeader, 
locators: &AdjacencyIndex) -
                     }
                 }
             }
-        } else {
-            if offset != record_prefix {
-                return Err(invalid_data(
-                    "DiskANN adjacency page has an invalid first record 
offset",
-                ));
-            }
+        } else if offset != record_prefix {
+            return Err(invalid_data(
+                "DiskANN adjacency page has an invalid first record offset",
+            ));
         }
         previous_page = locator.page_index;
         previous_offset = offset;

Reply via email to