Skip to content

Commit 181f553

Browse files
committed
style: lint
1 parent 9181f90 commit 181f553

File tree

1 file changed

+6
-9
lines changed

1 file changed

+6
-9
lines changed

packages/runtime/src/templates/edge/next-dev.js

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,16 @@ globalThis.NFRequestContextMap ||= new Map()
77
globalThis.__dirname = fromFileUrl(new URL('./', import.meta.url)).slice(0, -1)
88

99
// Next.js uses this extension to the Headers API implemented by Cloudflare workerd
10-
if(!('getAll' in Headers.prototype)) {
10+
if (!('getAll' in Headers.prototype)) {
1111
Headers.prototype.getAll = function getAll(name) {
12-
name = name.toLowerCase();
13-
if (name !== "set-cookie") {
14-
throw new Error("Headers.getAll is only supported for Set-Cookie");
12+
name = name.toLowerCase()
13+
if (name !== 'set-cookie') {
14+
throw new Error('Headers.getAll is only supported for Set-Cookie')
1515
}
16-
return [...this.entries()]
17-
.filter(([key]) => key === name)
18-
.map(([, value]) => value);
19-
};
16+
return [...this.entries()].filter(([key]) => key === name).map(([, value]) => value)
17+
}
2018
}
2119

22-
2320
// Check if a file exists, given a relative path
2421
const exists = async (relativePath) => {
2522
const path = fromFileUrl(new URL(relativePath, import.meta.url))

0 commit comments

Comments
 (0)