Skip to content

Commit 8fbd240

Browse files
Yuri ZmytrakovYuri Zmytrakov
authored andcommitted
fix: implement recommendations
1 parent c6df9f1 commit 8fbd240

File tree

1 file changed

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

1 file changed

+1
-5
lines changed

stac_fastapi/core/stac_fastapi/core/core.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -745,11 +745,7 @@ async def post_search(
745745
default_limit = int(os.getenv("STAC_DEFAULT_ITEM_LIMIT", 10))
746746

747747
requested_limit = getattr(search_request, "limit", None)
748-
749-
if requested_limit is None:
750-
limit = default_limit
751-
else:
752-
limit = requested_limit
748+
limit = requested_limit or default_limit
753749

754750
if global_max_limit:
755751
limit = min(limit, global_max_limit)

0 commit comments

Comments
 (0)