Potential fix for code scanning alert no. 43: Unnecessary lambda

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
This commit is contained in:
kevinveenbirkenbachandCopilot Autofix powered by AI authored and GitHub committed 2025-12-18 16:28:02 +01:00
1 parent 3335604cd3
commit aa586e0e2c
1 file changed
+1 -1
+1 -1
View File
@@ -69,7 +69,7 @@ def render_templates(src_dir, dst_dir, context):
keep_trailing_newline=True,
autoescape=select_autoescape(["html", "xml"]),
)
env.filters["bool"] = lambda x: bool(x)
env.filters["bool"] = bool
env.filters["get_entity_name"] = get_entity_name
for root, _, files in os.walk(src_dir):