diff options
| author | Dennis Fink | 2024-09-24 16:55:38 +0200 |
|---|---|---|
| committer | Dennis Fink | 2024-09-24 16:55:38 +0200 |
| commit | 6f6bc17ab1f62b20628ee7767de10ded7c2dbcef (patch) | |
| tree | b178ead6aee3cceee4a5d38aae275f1b052896ad | |
| parent | 74b17048635ab578723dfdc152524bea2828c576 (diff) | |
| download | patternutils-6f6bc17ab1f62b20628ee7767de10ded7c2dbcef.tar.gz patternutils-6f6bc17ab1f62b20628ee7767de10ded7c2dbcef.zip | |
Remove uneeded conditional
| -rw-r--r-- | patternutils/commands/patterncfg.py | 2 |
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) |
