mirror of
https://github.com/zulip/zulip.git
synced 2025-11-17 20:41:46 +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
@@ -135,9 +135,8 @@ Missing required -X argument in curl command:
|
||||
|
||||
for line in lines:
|
||||
regex = r'curl [-](sS)?X "?(GET|DELETE|PATCH|POST)"?'
|
||||
if line.startswith("curl"):
|
||||
if re.search(regex, line) is None:
|
||||
raise MarkdownRenderingError(error_msg.format(command=line.strip()))
|
||||
if line.startswith("curl") and re.search(regex, line) is None:
|
||||
raise MarkdownRenderingError(error_msg.format(command=line.strip()))
|
||||
|
||||
|
||||
CODE_VALIDATORS: Dict[Optional[str], Callable[[List[str]], None]] = {
|
||||
|
||||
Reference in New Issue
Block a user