Skip to content

Commit 916f926

Browse files
doublefacedoubleface
doubleface
authored andcommittedMay 23, 2024·
fix: Lint error Assignment to function parameter 'params'
1 parent df699bc commit 916f926

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎packages/cozy-konnector-libs/src/libs/solveCaptcha.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ const DEFAULT_TIMEOUT = connectorStartTime + 3 * m // 3 minutes by default to le
5050
* ```
5151
* @alias module:solveCaptcha
5252
*/
53-
const solveCaptcha = async (params = {}) => {
53+
const solveCaptcha = async (userParams = {}) => {
5454
const defaultParams = {
5555
type: 'recaptcha',
5656
timeout: DEFAULT_TIMEOUT,
@@ -60,7 +60,7 @@ const solveCaptcha = async (params = {}) => {
6060
let solution
6161
let resultAttribute = 'gRecaptchaResponse'
6262

63-
params = { ...defaultParams, ...params }
63+
const params = { ...defaultParams, ...userParams }
6464

6565
const secrets = JSON.parse(process.env.COZY_PARAMETERS || '{}').secret
6666

0 commit comments

Comments
 (0)
Please sign in to comment.