Skip to content

Commit 3545b41

Browse files
ci: apply automated fixes
1 parent 92a0b66 commit 3545b41

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

packages/query-core/src/utils.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -138,14 +138,11 @@ type NonFunction =
138138
* const delay = resolveOption(retryDelay, failureCount, error)
139139
* ```
140140
*/
141-
export function resolveOption<
142-
T extends NonFunction,
143-
TArgs extends Array<any>
144-
>(
141+
export function resolveOption<T extends NonFunction, TArgs extends Array<any>>(
145142
value: T | ((...args: TArgs) => T),
146143
...args: TArgs
147144
): T {
148-
return typeof value === 'function' ? value(...args) : value
145+
return typeof value === 'function' ? value(...args) : value
149146
}
150147

151148
export function functionalUpdate<TInput, TOutput extends NonFunction>(

0 commit comments

Comments
 (0)