Skip to content

Commit a4e0487

Browse files
febus982claude
andcommitted
Remove redundant or [] fallback in cursor_paginated_find
The list comprehension already produces a list, making the or [] fallback unnecessary. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent a4c9cbc commit a4e0487

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

sqlalchemy_bind_manager/_repository/async_.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ async def cursor_paginated_find(
274274
).scalar() or 0
275275
result_items = [
276276
x for x in (await session.execute(paginated_stmt)).scalars()
277-
] or []
277+
]
278278

279279
return CursorPaginatedResultPresenter.build_result(
280280
result_items=result_items,

0 commit comments

Comments
 (0)