Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

style: code prettier #1480

Merged
merged 1 commit into from Jul 21, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
7 changes: 4 additions & 3 deletions packages/router/src/navigationGuards.ts
Expand Up @@ -137,7 +137,7 @@ export function guardToPromiseFn(
const next: NavigationGuardNext = (
valid?: boolean | RouteLocationRaw | NavigationGuardNextCallback | Error
) => {
if (valid === false)
if (valid === false) {
reject(
createRouterError<NavigationFailure>(
ErrorTypes.NAVIGATION_ABORTED,
Expand All @@ -147,7 +147,7 @@ export function guardToPromiseFn(
}
)
)
else if (valid instanceof Error) {
} else if (valid instanceof Error) {
reject(valid)
} else if (isRouteLocation(valid)) {
reject(
Expand All @@ -165,8 +165,9 @@ export function guardToPromiseFn(
// since enterCallbackArray is truthy, both record and name also are
record!.enterCallbacks[name!] === enterCallbackArray &&
typeof valid === 'function'
)
) {
enterCallbackArray.push(valid)
}
resolve()
}
}
Expand Down