Skip to content

Commit

Permalink
Fix linter complaint (#39)
Browse files Browse the repository at this point in the history
  • Loading branch information
slovdahl authored Apr 12, 2023
1 parent 346c621 commit c970a26
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions marge/batch_job.py
Original file line number Diff line number Diff line change
Expand Up @@ -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}'
)
)

Expand Down

0 comments on commit c970a26

Please sign in to comment.