Skip to content

Commit

Permalink
Fix Usage example and Open.file()
Browse files Browse the repository at this point in the history
  • Loading branch information
jorangreef committed Mar 19, 2018
1 parent ca04ba6 commit fb998a5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Opened.files(paths,
if (error) throw error;
paths.forEach(
function(path) {
console.log(path + ' open=' + hashTable.hasOwnProperty(path));
console.log(path + ' open=' + hashTable[path]);
}
);
}
Expand Down
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ Unix.file = function(path, end) {
self.files([path],
function(error, files) {
if (error) return end(error);
end(undefined, files.hasOwnProperty(path));
end(undefined, files[path]);
}
);
};
Expand Down

0 comments on commit fb998a5

Please sign in to comment.