Skip to content

Commit 12d92a8

Browse files
committed
fix linting
1 parent 95008a7 commit 12d92a8

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

packages/core/src/utils/handleCallbackErrors.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,7 @@ import { isThenable } from '../utils/is';
1414
export function handleCallbackErrors<
1515
// eslint-disable-next-line @typescript-eslint/no-explicit-any
1616
Fn extends () => any,
17-
>(
18-
fn: Fn,
19-
onError: (error: unknown) => void,
20-
onFinally: () => void = () => {},
21-
): ReturnType<Fn> {
17+
>(fn: Fn, onError: (error: unknown) => void, onFinally: () => void = () => {}): ReturnType<Fn> {
2218
let maybePromiseResult: ReturnType<Fn>;
2319
try {
2420
maybePromiseResult = fn();

0 commit comments

Comments
 (0)