Merge pull request #3795 from Stromwerk/patch-1

This commit is contained in:
Cody Robibero 2022-08-13 08:00:12 -06:00 committed by GitHub
commit 1fa2142390
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -75,8 +75,7 @@
*/ */
function paramsToString(params) { function paramsToString(params) {
return Object.entries(params) return Object.entries(params)
// eslint-disable-next-line no-unused-vars .filter(([, v]) => v !== null && v !== undefined && v !== '')
.filter(([_, v]) => v !== null && v !== undefined && v !== '')
.map(([k, v]) => `${encodeURIComponent(k)}=${encodeURIComponent(v)}`) .map(([k, v]) => `${encodeURIComponent(k)}=${encodeURIComponent(v)}`)
.join('&'); .join('&');
} }