Skip to content

Commit 94ad607

Browse files
committed
remove unnecessary code
1 parent b9c88c4 commit 94ad607

File tree

1 file changed

+0
-6
lines changed
  • stac_fastapi/core/stac_fastapi/core

1 file changed

+0
-6
lines changed

stac_fastapi/core/stac_fastapi/core/core.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -693,10 +693,7 @@ async def create_item(
693693
NotFoundError: If the specified collection is not found in the database.
694694
ConflictError: If an item with the same ID already exists in the collection.
695695
"""
696-
# Ensure request is present
697696
request = kwargs.get("request")
698-
if not request:
699-
raise ValueError("Request must be provided in kwargs")
700697
base_url = str(request.base_url)
701698

702699
# Convert Pydantic model to dict for uniform processing
@@ -935,9 +932,6 @@ def bulk_item_insert(
935932
# Immediately raise on the first invalid item (strict mode)
936933
raise
937934

938-
if not processed_items:
939-
return "No valid items to insert."
940-
941935
collection_id = processed_items[0]["collection"]
942936
attempted = len(processed_items)
943937
success, errors = self.database.bulk_sync(

0 commit comments

Comments
 (0)