Skip to content

Commit 59b93c9

Browse files
committed
refactor: simplify return value
1 parent 82b4493 commit 59b93c9

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
@@ -436,12 +436,10 @@ def _add_sass_brand_grays(self):
436436
// If the brand foreground/background are close enough to black/white, we
437437
// use those values. Otherwise, we'll mix the white/black from the brand
438438
// fg/bg with actual white and black to get something much closer.
439-
$result: (
439+
@return (
440440
"white": if(contrast-ratio($white, white) <= 1.15, $white, mix($white, white, 20%)),
441441
"black": if(contrast-ratio($black, black) <= 1.15, $black, mix($black, black, 20%)),
442442
);
443-
444-
@return $result;
445443
}
446444
"""
447445
)

0 commit comments

Comments
 (0)