mirror of
https://github.com/zulip/zulip.git
synced 2025-11-03 05:23:35 +00:00
ruff: Fix SIM102 nested if statements.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
committed by
Tim Abbott
parent
50cf9bc4b8
commit
b0e569f07c
@@ -203,9 +203,8 @@ def repo_push_handler(
|
||||
event_target_type = change["ref"]["type"].tame(check_string)
|
||||
if event_target_type == "BRANCH":
|
||||
branch = change["ref"]["displayId"].tame(check_string)
|
||||
if branches:
|
||||
if branch not in branches:
|
||||
continue
|
||||
if branches and branch not in branches:
|
||||
continue
|
||||
data.append(repo_push_branch_data(payload, change))
|
||||
elif event_target_type == "TAG":
|
||||
data.append(repo_push_tag_data(payload, change))
|
||||
|
||||
Reference in New Issue
Block a user