summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDennis Fink2024-09-24 16:55:38 +0200
committerDennis Fink2024-09-24 16:55:38 +0200
commit6f6bc17ab1f62b20628ee7767de10ded7c2dbcef (patch)
treeb178ead6aee3cceee4a5d38aae275f1b052896ad
parent74b17048635ab578723dfdc152524bea2828c576 (diff)
downloadpatternutils-6f6bc17ab1f62b20628ee7767de10ded7c2dbcef.tar.gz
patternutils-6f6bc17ab1f62b20628ee7767de10ded7c2dbcef.zip
Remove uneeded conditional
-rw-r--r--patternutils/commands/patterncfg.py2
1 files changed, 1 insertions, 1 deletions
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)