Make it clear we're checking the filename

Replaces `file[0]` with a more meaningful `filename`.
This commit is contained in:
Elena Tanasoiu
2023-04-11 09:46:34 +00:00
parent fe3e9a713b
commit 9c0deaec96

View File

@@ -184,7 +184,9 @@ export class SkeletonQueryWizard {
const folderUri = Uri.file(join(this.storagePath, folderName));
const files = await workspace.fs.readDirectory(folderUri);
const qlFiles = files.filter((file) => file[0].endsWith(".ql"));
const qlFiles = files.filter(([filename, _fileType]) =>
filename.endsWith(".ql"),
);
return `example${qlFiles.length + 1}.ql`;
}