style: format prettier violations

This commit is contained in:
xixu-me committed 2026-03-06 19:45:03 +08:00
1 parent 0837de2f14
commit 87b7529628
2 files changed
+6 -2

No files matched your search

+4 -1
View File
@@ -83,7 +83,10 @@ async function handleRequest(request, env, ctx) {
if (!response) {
// Handle Docker authentication explicitly
if (isDocker && (url.pathname === '/v2/auth' || /^\/cr\/[^/]+\/v2\/auth\/?$/.test(url.pathname))) {
if (
isDocker &&
(url.pathname === '/v2/auth' || /^\/cr\/[^/]+\/v2\/auth\/?$/.test(url.pathname))
) {
response = await handleDockerAuth(request, url, config);
} else {
// Platform detection using transform patterns