Skip to content

Commit

Permalink
Merge pull request #437 from render-engine/remove-if-statement-in-mod…
Browse files Browse the repository at this point in the history
…ule_site

Remove unnecessary if statement in serve function
  • Loading branch information
kjaymiller committed Dec 5, 2023
2 parents 8b68e9e + 4ecdd90 commit 4fd5d68
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/render_engine/cli/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -330,10 +330,9 @@ def serve(
port: Port to serve on
"""

if module_site:
module, site = module_site
app = get_app(module, site)
app.render()
module, site = module_site
app = get_app(module, site)
app.render()

if not directory:
if module_site:
Expand Down

0 comments on commit 4fd5d68

Please sign in to comment.