Skip to content

Commit

Permalink
Use list comprehension
Browse files Browse the repository at this point in the history
  • Loading branch information
uranusjr committed Oct 15, 2024
1 parent 2628175 commit c804b6b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion airflow/jobs/scheduler_job_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -2094,7 +2094,7 @@ def _orphan_unreferenced_assets(self, session: Session = NEW_SESSION) -> None:
)
)

orphaning_identifiers = list(self._get_orphaning_identifier(asset) for asset in orphaned_asset_query)
orphaning_identifiers = [self._get_orphaning_identifier(asset) for asset in orphaned_asset_query]
session.execute(
delete(AssetActive).where(
tuple_in_condition((AssetActive.name, AssetActive.uri), orphaning_identifiers)
Expand Down

0 comments on commit c804b6b

Please sign in to comment.