Skip to content

Commit 2bb98d1

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 4ff1631 commit 2bb98d1

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

packit_service/worker/helpers/sync_release/sync_release.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -108,10 +108,12 @@ def job(self) -> Optional[JobConfig]:
108108
self._db_project_object.job_config_trigger_type == job.trigger
109109
# pull-from-upstream can be retriggered by a dist-git PR comment,
110110
# in which case the trigger types don't match
111-
or job.type == JobType.pull_from_upstream
112-
and self._db_project_object.job_config_trigger_type
113-
== JobConfigTriggerType.pull_request
114-
and job.trigger == JobConfigTriggerType.release
111+
or (
112+
job.type == JobType.pull_from_upstream
113+
and self._db_project_object.job_config_trigger_type
114+
== JobConfigTriggerType.pull_request
115+
and job.trigger == JobConfigTriggerType.release
116+
)
115117
)
116118
):
117119
self._job = job

tests/integration/test_bodhi_update.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1146,8 +1146,7 @@ def _create_update(dist_git_branch, update_type, koji_builds, sidetag, alias):
11461146
0
11471147
if missing_dependency
11481148
or non_unique_builds
1149-
or existing_update
1150-
and " " in existing_update.koji_nvrs
1149+
or (existing_update and " " in existing_update.koji_nvrs)
11511150
else 1
11521151
),
11531152
)

0 commit comments

Comments
 (0)