Skip to content

Commit 354ea9c

Browse files
committed
Auto-format
1 parent ab887bb commit 354ea9c

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

packages/components/src/utils/space.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ const GRID_BASE = '4px';
1919
*
2020
* When given a unit value or one of the named CSS values like `auto`,
2121
* it will simply return the value back.
22-
*
2322
* @param value A number, numeric string, or a unit value.
2423
*/
2524
export function space( value?: SpaceInput ): string | undefined {
@@ -36,8 +35,7 @@ export function space( value?: SpaceInput ): string | undefined {
3635

3736
// Test if the input has a unit, was NaN, or was one of the named CSS values (like `auto`), in which case just use that value.
3837
if (
39-
( typeof window !== 'undefined' &&
40-
window.CSS?.supports?.( 'margin', value.toString() ) ) ||
38+
( typeof window !== 'undefined' && window.CSS?.supports?.( 'margin', value.toString() ) ) ||
4139
Number.isNaN( asInt )
4240
) {
4341
return value.toString();

0 commit comments

Comments
 (0)