Skip to content

Commit 577a0f0

Browse files
committed
always generate links for all searches
1 parent f797ed4 commit 577a0f0

File tree

1 file changed

+1
-3
lines changed
  • stac_fastapi/core/stac_fastapi/core

1 file changed

+1
-3
lines changed

stac_fastapi/core/stac_fastapi/core/core.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -619,9 +619,7 @@ async def post_search(
619619
if maybe_count is not None:
620620
context_obj["matched"] = maybe_count
621621

622-
links = []
623-
if next_token:
624-
links = await PagingLinks(request=request, next=next_token).get_links()
622+
links = await PagingLinks(request=request, next=next_token).get_links()
625623

626624
return ItemCollection(
627625
type="FeatureCollection",

0 commit comments

Comments
 (0)