Skip to content

Commit 2141747

Browse files
committed
Add default values for arguments to sanitize function
1 parent 6831056 commit 2141747

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

codegens/curl/lib/util.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ var self = module.exports = {
1010
* @param {Boolean} [urlEncode] - indicates whether to url-encode inputString
1111
* @returns {String}
1212
*/
13-
sanitize: function (inputString, trim, quoteType, backSlash, urlEncode) {
13+
sanitize: function (inputString, trim, quoteType, backSlash = false, urlEncode = false) {
1414
if (typeof inputString !== 'string') {
1515
return '';
1616
}

0 commit comments

Comments
 (0)