Skip to content

Commit

Permalink
Add default values for arguments to sanitize function
Browse files Browse the repository at this point in the history
  • Loading branch information
webholik committed Feb 3, 2023
1 parent 6831056 commit 2141747
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion codegens/curl/lib/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 '';
}
Expand Down

0 comments on commit 2141747

Please sign in to comment.