Fix bug uncovered by new invalid flags test: missing return
This commit is contained in:
parent
2841b2eba7
commit
97d2d1bfe3
|
@ -1649,7 +1649,7 @@ function open(fs, context, path, flags, mode, callback) {
|
||||||
|
|
||||||
flags = validate_flags(flags);
|
flags = validate_flags(flags);
|
||||||
if(!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);
|
open_file(context, path, flags, mode, check_result);
|
||||||
|
|
Loading…
Reference in New Issue