From c970a263988bb0c67173d400970d797355c708fe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20L=C3=B6vdahl?= Date: Wed, 12 Apr 2023 16:21:33 +0300 Subject: [PATCH] Fix linter complaint (#39) --- marge/batch_job.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/marge/batch_job.py b/marge/batch_job.py index 49af66ec..9c199914 100644 --- a/marge/batch_job.py +++ b/marge/batch_job.py @@ -199,12 +199,10 @@ def accept_mr( pipeline.cancel() if merge_request.force_remove_source_branch: + source_branch = quote(merge_request.source_branch, safe="") self._api.call( DELETE( - 'projects/{}/repository/branches/{}'.format( - merge_request.source_project_id, - quote(merge_request.source_branch, safe='') - ) + f'projects/{merge_request.source_project_id}/repository/branches/{source_branch}' ) )