Skip to content
This repository was archived by the owner on Aug 15, 2024. It is now read-only.

Commit cc8a71f

Browse files
committed
fix: make meta return undefined when path does not exist (fixes #19)
1 parent d248b04 commit cc8a71f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/MemoryFileSystem.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ MemoryFileSystem.prototype.meta = function(_path) {
6262
var current = this.data;
6363
for(var i = 0; i < path.length - 1; i++) {
6464
if(!isDir(current[path[i]]))
65-
return null;
65+
return;
6666
current = current[path[i]];
6767
}
6868
return current[path[i]];

0 commit comments

Comments
 (0)