Skip to content

Commit 1bb2e3e

Browse files
committed
style: a spell issue :)
1 parent 4cb79f0 commit 1bb2e3e

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

‎src/kicanvas/services/github-vfs.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ export class GitHubFileSystem extends FileSystemBase {
5151
return await gh_user_content.get(download_url);
5252
}
5353

54-
override async enumrate(cur_dir: string): Promise<FileEntry[]> {
54+
override async enumerate(cur_dir: string): Promise<FileEntry[]> {
5555
if (this.single_file) {
5656
// single file, return all files directly
5757
return Array.from(this.download_urls.keys()).map((v) => ({

‎src/kicanvas/services/vfs.ts‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ export abstract class FileSystemBase implements IFileSystem {
131131
return;
132132
}
133133

134-
const entries = await this.enumrate(dir);
134+
const entries = await this.enumerate(dir);
135135
this.entries.set(dir, { path: dir, type: "visited-directory" });
136136

137137
for (const it of entries) {
@@ -150,7 +150,7 @@ export abstract class FileSystemBase implements IFileSystem {
150150
/**
151151
* Enumerate files at `base_dir`. (default: empty)
152152
*/
153-
protected abstract enumrate(base_dir: string): Promise<FileEntry[]>;
153+
protected abstract enumerate(base_dir: string): Promise<FileEntry[]>;
154154
}
155155

156156
/**
@@ -224,7 +224,7 @@ export class LocalFileSystemBase extends FileSystemBase {
224224
return file;
225225
}
226226

227-
async enumrate(base_dir: string): Promise<FileEntry[]> {
227+
async enumerate(base_dir: string): Promise<FileEntry[]> {
228228
// All files are already provided by the constructor.
229229
return [];
230230
}
@@ -301,7 +301,7 @@ export class FetchFileSystem extends FileSystemBase {
301301
return new File([blob], path);
302302
}
303303

304-
async enumrate(base_dir: string): Promise<FileEntry[]> {
304+
async enumerate(base_dir: string): Promise<FileEntry[]> {
305305
return Array.from(this.urls.keys()).map((path) => ({
306306
path,
307307
type: "file",

0 commit comments

Comments
 (0)