From 6f6bc17ab1f62b20628ee7767de10ded7c2dbcef Mon Sep 17 00:00:00 2001 From: Dennis Fink Date: Tue, 24 Sep 2024 16:55:38 +0200 Subject: Remove uneeded conditional --- patternutils/commands/patterncfg.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/patternutils/commands/patterncfg.py b/patternutils/commands/patterncfg.py index e84a0db..1b37ba4 100644 --- a/patternutils/commands/patterncfg.py +++ b/patternutils/commands/patterncfg.py @@ -69,7 +69,7 @@ def add( if command == "pmatch": fileext = "regex" else: - fileext = "jinja2" if template_engine == "jinja2" else "python" + fileext = template_engine filename = os.path.join(config.CONFIG_PATH, command, f"{name}.{fileext}") click.edit(filename=filename) -- cgit v1.3.1