Skip to content
Permalink
Browse files

Fix bug uncovered by new invalid flags test: missing return

  • Loading branch information...
humphd committed Dec 13, 2018
1 parent 2841b2e commit 97d2d1bfe3a5e729f78684e6e688beb870c36bcc
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/filesystem/implementation.js
@@ -1649,7 +1649,7 @@ function open(fs, context, path, flags, mode, callback) {

flags = validate_flags(flags);
if(!flags) {
callback(new Errors.EINVAL('flags is not valid'), path);
return callback(new Errors.EINVAL('flags is not valid'), path);
}

open_file(context, path, flags, mode, check_result);

0 comments on commit 97d2d1b

Please sign in to comment.
You can’t perform that action at this time.