Skip to content

Commit 91306fd

Browse files
committed
fix: remove unreachable return statement in ListNamespaces
The while(true) loop in RestCatalog::ListNamespaces only exits via the return statement at line 151 when next_page_token is empty. The return statement after the loop is unreachable dead code and should be removed.
1 parent 7e784dc commit 91306fd

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/iceberg/catalog/rest/rest_catalog.cc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,6 @@ Result<std::vector<Namespace>> RestCatalog::ListNamespaces(const Namespace& ns)
152152
}
153153
next_token = list_response.next_page_token;
154154
}
155-
return result;
156155
}
157156

158157
Status RestCatalog::CreateNamespace(

0 commit comments

Comments
 (0)