We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e4d83e7 commit 1a3dd10Copy full SHA for 1a3dd10
1 file changed
src/spec-utils/pfs.ts
@@ -15,7 +15,7 @@ export function isLocalFile(filepath: string): Promise<boolean> {
15
}
16
17
export function isLocalFolder(filepath: string): Promise<boolean> {
18
- return new Promise(r => fs.realpath(filepath, (err,rpath) => r(!err && fs.stat(rpath, (err, stat) => r(!err && stat.isDirectory())))));
+ return new Promise(r => fs.realpath(filepath, (err,rpath) => r(!err && fs.stat(rpath, (err, stat) => (!err && stat.isDirectory())))));
19
20
21
export const readLocalFile = promisify(fs.readFile);
0 commit comments