Skip to content

Commit 1a3dd10

Browse files
committed
Fix return value in inner callback
1 parent e4d83e7 commit 1a3dd10

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/spec-utils/pfs.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export function isLocalFile(filepath: string): Promise<boolean> {
1515
}
1616

1717
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())))));
18+
return new Promise(r => fs.realpath(filepath, (err,rpath) => r(!err && fs.stat(rpath, (err, stat) => (!err && stat.isDirectory())))));
1919
}
2020

2121
export const readLocalFile = promisify(fs.readFile);

0 commit comments

Comments
 (0)