Skip to content

Commit

Permalink
🔨(render.py): minor refactor for complexity
Browse files Browse the repository at this point in the history
Signed-off-by: rjdbcm <[email protected]>
  • Loading branch information
rjdbcm committed Jun 13, 2024
1 parent fb697e4 commit 884071c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions ozi/render.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ def map_to_template(
:return: template path
:rtype: str
"""
x = '' # pragma: no cover
match fix, filename:
case ['test' | 'root', f] if f.endswith('.py'):
x = 'tests/new_test.py.j2'
Expand All @@ -73,8 +74,6 @@ def map_to_template(
x = f'project.name/{f}.j2'
case ['test', f]:
x = f'tests/{f}.j2'
case [_, _]: # pragma: no cover
x = ''
return x


Expand Down

0 comments on commit 884071c

Please sign in to comment.