mirror of
https://github.com/zulip/zulip.git
synced 2025-10-23 04:52:12 +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
@@ -58,9 +58,8 @@ def get_filtered_commands() -> Dict[str, str]:
|
||||
for command, app in all_commands.items():
|
||||
if app not in documented_apps:
|
||||
continue
|
||||
if app in documented_command_subsets:
|
||||
if command not in documented_command_subsets[app]:
|
||||
continue
|
||||
if app in documented_command_subsets and command not in documented_command_subsets[app]:
|
||||
continue
|
||||
|
||||
documented_commands[command] = app
|
||||
return documented_commands
|
||||
|
Reference in New Issue
Block a user