This is an automated email from the ASF dual-hosted git repository. jerry-024 pushed a commit to branch release-1-ali-4.1 in repository https://gitbox.apache.org/repos/asf/paimon-vector-index.git
commit 1e8fb911526a59c0815fe1add5dc56748680b41a Author: yantian <[email protected]> AuthorDate: Tue Aug 4 17:25:21 2026 +0800 style: satisfy collapsible else-if lint --- 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;
