Skip to content

Commit

Permalink
Use fallback arg instead of if..else expression
Browse files Browse the repository at this point in the history
  • Loading branch information
psrok1 authored Jan 17, 2024
1 parent ab36012 commit c213c37
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions karton/dashboard/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,7 @@ class KartonDashboard(KartonBase):

karton = KartonDashboard()

base_path = (
karton.config.get("dashboard", "base_path")
if karton.config.has_option("dashboard", "base_path")
else ""
)
base_path = karton.config.get("dashboard", "base_path", fallback="")

app_path = Path(__file__).parent
static_folder = app_path / "static"
Expand Down

0 comments on commit c213c37

Please sign in to comment.