mirror of
https://github.com/withastro/astro.git
synced 2025-03-24 23:21:57 -05:00
[ci] format
This commit is contained in:
parent
ea225585fd
commit
406a21fe46
1 changed files with 2 additions and 2 deletions
|
@ -111,7 +111,7 @@ export abstract class Pipeline {
|
||||||
return this.resolvedMiddleware;
|
return this.resolvedMiddleware;
|
||||||
}
|
}
|
||||||
// The middleware can be undefined when using edge middleware.
|
// The middleware can be undefined when using edge middleware.
|
||||||
// This is set to undefined by the plugin-ssr.ts
|
// This is set to undefined by the plugin-ssr.ts
|
||||||
else if (this.middleware) {
|
else if (this.middleware) {
|
||||||
const middlewareInstance = await this.middleware();
|
const middlewareInstance = await this.middleware();
|
||||||
const onRequest = middlewareInstance.onRequest ?? NOOP_MIDDLEWARE_FN;
|
const onRequest = middlewareInstance.onRequest ?? NOOP_MIDDLEWARE_FN;
|
||||||
|
@ -123,7 +123,7 @@ export abstract class Pipeline {
|
||||||
return this.resolvedMiddleware;
|
return this.resolvedMiddleware;
|
||||||
} else {
|
} else {
|
||||||
this.resolvedMiddleware = NOOP_MIDDLEWARE_FN;
|
this.resolvedMiddleware = NOOP_MIDDLEWARE_FN;
|
||||||
return this.resolvedMiddleware
|
return this.resolvedMiddleware;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue