From 1a7b03d0a50d8c84d0e54cb7f5581bc6337bb30e Mon Sep 17 00:00:00 2001 From: JonasBa Date: Fri, 19 Jul 2024 17:55:08 -0400 Subject: [PATCH] fs: validate recursive --- lib/fs.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/fs.js b/lib/fs.js index 2d930629400fe1..2a686ca23046b6 100644 --- a/lib/fs.js +++ b/lib/fs.js @@ -1314,7 +1314,7 @@ function mkdir(path, options, callback) { } else if (options) { if (options.recursive !== undefined) { recursive = options.recursive; - validateBoolean(options.recursive); + validateBoolean(recursive); } if (options.mode !== undefined) { mode = parseFileMode(options.mode, 'options.mode');