mirror of
https://github.com/zulip/zulip.git
synced 2025-11-02 04:53:36 +00:00
ruff: Fix PERF401 Use a list comprehension to create a transformed list.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
committed by
Tim Abbott
parent
0b95d83f09
commit
562a79ab76
@@ -17,11 +17,7 @@ from scripts.lib.zulip_tools import ENDC, FAIL, WARNING
|
||||
|
||||
|
||||
def find_handlebars(translatable_strings: List[str]) -> List[str]:
|
||||
errored = []
|
||||
for string in translatable_strings:
|
||||
if "{{" in string:
|
||||
errored.append(string)
|
||||
return errored
|
||||
return [string for string in translatable_strings if "{{" in string]
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
||||
Reference in New Issue
Block a user