From 97d2d1bfe3a5e729f78684e6e688beb870c36bcc Mon Sep 17 00:00:00 2001 From: David Humphrey Date: Wed, 12 Dec 2018 22:07:55 -0500 Subject: [PATCH] Fix bug uncovered by new invalid flags test: missing return --- src/filesystem/implementation.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/filesystem/implementation.js b/src/filesystem/implementation.js index 2ff55c6..f1b7f73 100644 --- a/src/filesystem/implementation.js +++ b/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);