Skip to content

Commit

Permalink
Remove redundant check
Browse files Browse the repository at this point in the history
  • Loading branch information
tschaub committed Aug 9, 2018
1 parent 076fca8 commit 28d65a7
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions lib/binding.js
Expand Up @@ -464,9 +464,6 @@ Binding.prototype.open = function(pathname, flags, mode, callback) {
throw new FSError('EISDIR', pathname);
}
if (descriptor.isTruncate()) {
if (item instanceof Directory) {
throw new FSError('EISDIR');
}
if (!(item instanceof File)) {
throw new FSError('EBADF');
}
Expand Down

0 comments on commit 28d65a7

Please sign in to comment.