Skip to content

Commit ced644a

Browse files
committed
chore: Apply suggestions from code review
1 parent 03adf5c commit ced644a

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

shiny/ui/_theme_brand.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -151,12 +151,10 @@ def __init__(
151151
*,
152152
include_paths: Optional[str | Path | list[str | Path]] = None,
153153
):
154-
if not isinstance(brand, Brand):
155-
raise ValueError("Invalid `brand`, must be a path or a Brand instance.")
156154

157155
name: str = "brand"
158156
if brand.meta and brand.meta.name:
159-
name = brand.meta.name.full or brand.meta.name.short or "brand"
157+
name = brand.meta.name.full or brand.meta.name.short or name
160158

161159
brand_bootstrap = BrandBootstrap.from_brand(brand)
162160

0 commit comments

Comments
 (0)