Skip to content

Commit 6002735

Browse files
committed
More pythonic indices check
1 parent dc857f5 commit 6002735

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stac_fastapi/core/stac_fastapi/core/database_logic.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ def indices(collection_ids: Optional[List[str]]) -> str:
167167
Returns:
168168
A string of comma-separated index names. If `collection_ids` is None, returns the default indices.
169169
"""
170-
if collection_ids is None or collection_ids == []:
170+
if not collection_ids:
171171
return ITEM_INDICES
172172
else:
173173
return ",".join([index_alias_by_collection_id(c) for c in collection_ids])

0 commit comments

Comments
 (0)