Skip to content

Commit 71b6fb5

Browse files
committed
style: format buildFallbackUrl with prettier
1 parent b754ea1 commit 71b6fb5

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

packages/client/src/client/auth.ts

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1014,12 +1014,8 @@ async function fetchWithCorsRetry(url: URL, headers?: Record<string, string>, fe
10141014
* `https://example.com/admin/authorize` (path preserved).
10151015
*/
10161016
function buildFallbackUrl(authorizationServerUrl: string | URL, endpoint: string): URL {
1017-
const url = typeof authorizationServerUrl === 'string'
1018-
? new URL(authorizationServerUrl)
1019-
: new URL(authorizationServerUrl.href);
1020-
const basePath = url.pathname.endsWith('/')
1021-
? url.pathname.slice(0, -1)
1022-
: url.pathname;
1017+
const url = typeof authorizationServerUrl === 'string' ? new URL(authorizationServerUrl) : new URL(authorizationServerUrl.href);
1018+
const basePath = url.pathname.endsWith('/') ? url.pathname.slice(0, -1) : url.pathname;
10231019
url.pathname = `${basePath}${endpoint}`;
10241020
return url;
10251021
}

0 commit comments

Comments
 (0)