Skip to content

Commit 0dcac36

Browse files
ci: apply automated fixes
1 parent 66772ea commit 0dcac36

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

packages/router-core/src/load-matches.ts

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -489,14 +489,8 @@ const handleBeforeLoad = (
489489

490490
const queueExecution = () => {
491491
if (shouldSkipLoader(inner, matchId)) return
492-
const result = preBeforeLoadSetup(
493-
inner,
494-
matchId,
495-
route,
496-
)
497-
return isPromise(result)
498-
? result.then(execute)
499-
: execute()
492+
const result = preBeforeLoadSetup(inner, matchId, route)
493+
return isPromise(result) ? result.then(execute) : execute()
500494
}
501495

502496
const execute = () => executeBeforeLoad(inner, matchId, index, route)

0 commit comments

Comments
 (0)