cleanup statement
This commit is contained in:
parent
53bb5a66ae
commit
db78339b02
@ -18,7 +18,7 @@ export function loadData(path) {
|
||||
export function getStat(path) {
|
||||
fs.stat(path, (err, stat) => {
|
||||
if(err == null) return true;
|
||||
else if(err.code === 'ENOENT') return false;
|
||||
else return err.code;
|
||||
if(err.code === 'ENOENT') return false;
|
||||
return err.code;
|
||||
});
|
||||
}
|
Loading…
Reference in New Issue
Block a user