From 2141747eca0856b686924735aed67a46565e1109 Mon Sep 17 00:00:00 2001 From: Ankit Saini Date: Fri, 3 Feb 2023 10:49:32 +0530 Subject: [PATCH] Add default values for arguments to sanitize function --- codegens/curl/lib/util.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/codegens/curl/lib/util.js b/codegens/curl/lib/util.js index b44ce94a4..b634763de 100644 --- a/codegens/curl/lib/util.js +++ b/codegens/curl/lib/util.js @@ -10,7 +10,7 @@ var self = module.exports = { * @param {Boolean} [urlEncode] - indicates whether to url-encode inputString * @returns {String} */ - sanitize: function (inputString, trim, quoteType, backSlash, urlEncode) { + sanitize: function (inputString, trim, quoteType, backSlash = false, urlEncode = false) { if (typeof inputString !== 'string') { return ''; }