chore: correct misspelled variable (#1258)
Renames `entires` to `entries`.
This commit is contained in:
@@ -289,13 +289,13 @@ export class ServerContext {
|
|||||||
opts.staticDir ?? "./static",
|
opts.staticDir ?? "./static",
|
||||||
manifest.baseUrl,
|
manifest.baseUrl,
|
||||||
);
|
);
|
||||||
const entires = walk(fromFileUrl(staticFolder), {
|
const entries = walk(fromFileUrl(staticFolder), {
|
||||||
includeFiles: true,
|
includeFiles: true,
|
||||||
includeDirs: false,
|
includeDirs: false,
|
||||||
followSymlinks: false,
|
followSymlinks: false,
|
||||||
});
|
});
|
||||||
const encoder = new TextEncoder();
|
const encoder = new TextEncoder();
|
||||||
for await (const entry of entires) {
|
for await (const entry of entries) {
|
||||||
const localUrl = toFileUrl(entry.path);
|
const localUrl = toFileUrl(entry.path);
|
||||||
const path = localUrl.href.substring(staticFolder.href.length);
|
const path = localUrl.href.substring(staticFolder.href.length);
|
||||||
const stat = await Deno.stat(localUrl);
|
const stat = await Deno.stat(localUrl);
|
||||||
|
|||||||
Reference in New Issue
Block a user