mirror of
https://github.com/zulip/zulip.git
synced 2025-10-26 17:43:58 +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
@@ -28,9 +28,8 @@ def clean_up_pattern(s: str) -> str:
|
||||
paren_level += 1
|
||||
if c == "<" and prior_char == "P":
|
||||
in_braces = True
|
||||
if in_braces or (paren_level == 0):
|
||||
if c != "?":
|
||||
result += c
|
||||
if (in_braces or paren_level == 0) and c != "?":
|
||||
result += c
|
||||
if c == ")":
|
||||
paren_level -= 1
|
||||
if c == ">":
|
||||
|
||||
Reference in New Issue
Block a user