Skip to content

Commit 03bfa05

Browse files
committed
ruff
1 parent c37177a commit 03bfa05

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lambdas/mesh_processor/src/converter.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,7 @@
1717

1818
def parse_headers(headers_str: str) -> dict[str, str]:
1919
headers = dict(
20-
header_str.split(":", 1) for header_str in headers_str.split("\r\n")
21-
if ":" in header_str
20+
header_str.split(":", 1) for header_str in headers_str.split("\r\n") if ":" in header_str
2221
) # NOSONAR(S7494) force this to dict
2322
return {k.strip(): v.strip() for k, v in headers.items()}
2423

0 commit comments

Comments
 (0)