Skip to content

Commit 959c3fb

Browse files
Fix typos
1 parent 5cbb7b4 commit 959c3fb

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

extensions/ql-vscode/src/common/file-path-set.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ export class FilePathSet {
3535
}
3636
}
3737

38-
/** Removes and returns a path from the set, if the set of non-empty. */
38+
/** Removes and returns a path from the set, if the set is non-empty. */
3939
public popPath(): string | undefined {
4040
return this.paths.shift();
4141
}

extensions/ql-vscode/src/common/vscode/file-path-discovery.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ export abstract class FilePathDiscovery<T extends PathData> extends Discovery {
128128

129129
private async handledChangedPath(path: string): Promise<boolean> {
130130
if (!(await exists(path)) || !this.pathIsInWorkspace(path)) {
131-
return this.handledRemovedPath(path);
131+
return this.handleRemovedPath(path);
132132
}
133133
if ((await lstat(path)).isDirectory()) {
134134
return await this.handleChangedDirectory(path);
@@ -142,7 +142,7 @@ export abstract class FilePathDiscovery<T extends PathData> extends Discovery {
142142
);
143143
}
144144

145-
private handledRemovedPath(path: string): boolean {
145+
private handleRemovedPath(path: string): boolean {
146146
const oldLength = this.paths.length;
147147
this.paths = this.paths.filter((q) => !containsPath(path, q.path));
148148
return this.paths.length !== oldLength;

0 commit comments

Comments
 (0)