Skip to content

Commit c44ca47

Browse files
ci: apply automated fixes
1 parent ef0c16e commit c44ca47

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

packages/react-query/src/suspense.ts

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,9 @@ export const ensureSuspenseTimers = (
2727
const MIN_SUSPENSE_TIME_MS = 1000
2828

2929
const clamp = (value: number | 'static' | undefined) =>
30-
value === 'static' ? value : Math.max(value ?? MIN_SUSPENSE_TIME_MS, MIN_SUSPENSE_TIME_MS)
30+
value === 'static'
31+
? value
32+
: Math.max(value ?? MIN_SUSPENSE_TIME_MS, MIN_SUSPENSE_TIME_MS)
3133

3234
const originalStaleTime = defaultedOptions.staleTime
3335
defaultedOptions.staleTime =
@@ -36,7 +38,10 @@ export const ensureSuspenseTimers = (
3638
: clamp(originalStaleTime)
3739

3840
if (typeof defaultedOptions.gcTime === 'number') {
39-
defaultedOptions.gcTime = Math.max(defaultedOptions.gcTime, MIN_SUSPENSE_TIME_MS)
41+
defaultedOptions.gcTime = Math.max(
42+
defaultedOptions.gcTime,
43+
MIN_SUSPENSE_TIME_MS,
44+
)
4045
}
4146
}
4247
}

0 commit comments

Comments
 (0)