Fix bug uncovered by new invalid flags test: missing return

This commit is contained in:
David Humphrey 2018-12-12 22:07:55 -05:00
parent 2841b2eba7
commit 97d2d1bfe3
1 changed files with 1 additions and 1 deletions

View File

@ -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);