mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-30 05:59:51 +01:00
fix: use map's ahs
This commit is contained in:
1 parent
9ffc040723
commit
8c1bf450a8
2 files changed
+2
-2
No files matched your search
@@ -30,7 +30,7 @@ export abstract class AbstractVFS {
|
|||||||
assert(path: string) {
|
assert(path: string) {
|
||||||
const resolved = this.resolve(path);
|
const resolved = this.resolve(path);
|
||||||
|
|
||||||
if (!resolved) throw new Error(`File not found: ${path}`);
|
if (resolved === null) throw new Error(`File not found: ${path}`);
|
||||||
|
|
||||||
return resolved;
|
return resolved;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ export class ZipVFS extends AbstractVFS {
|
|||||||
}
|
}
|
||||||
|
|
||||||
has(path: string) {
|
has(path: string) {
|
||||||
return path in this.entries;
|
return this.entries.has(path);
|
||||||
}
|
}
|
||||||
|
|
||||||
async raw(path: string) {
|
async raw(path: string) {
|
||||||
|
|||||||
Reference in new issue
Block a user