This PR fixes a bug when the pagination logic processes an empty list, which is now covered by the unit test test_find_nodes_paginated_empty_list. Previously this would fail to generate a value for has_next_page due to a list index out of range error, but it should return false.
Summary
This PR fixes a bug when the pagination logic processes an empty list, which is now covered by the unit test
test_find_nodes_paginated_empty_list
. Previously this would fail to generate a value forhas_next_page
due to a list index out of range error, but it should returnfalse
.Test Plan
make check
passesmake test
shows 100% unit test coverageDeployment Plan