Get rid of unnecessary ternary

This commit is contained in:
Elena Tanasoiu
2023-04-11 09:39:44 +00:00
parent 30011aaf65
commit fe3e9a713b

View File

@@ -184,9 +184,7 @@ 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") ? true : false,
);
const qlFiles = files.filter((file) => file[0].endsWith(".ql"));
return `example${qlFiles.length + 1}.ql`;
}