Skip to content

Commit

Permalink
fix: Lint error Assignment to function parameter 'params'
Browse files Browse the repository at this point in the history
  • Loading branch information
doubleface authored and doubleface committed May 23, 2024
1 parent df699bc commit 916f926
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/cozy-konnector-libs/src/libs/solveCaptcha.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ const DEFAULT_TIMEOUT = connectorStartTime + 3 * m // 3 minutes by default to le
* ```
* @alias module:solveCaptcha
*/
const solveCaptcha = async (params = {}) => {
const solveCaptcha = async (userParams = {}) => {
const defaultParams = {
type: 'recaptcha',
timeout: DEFAULT_TIMEOUT,
Expand All @@ -60,7 +60,7 @@ const solveCaptcha = async (params = {}) => {
let solution
let resultAttribute = 'gRecaptchaResponse'

params = { ...defaultParams, ...params }
const params = { ...defaultParams, ...userParams }

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

Expand Down

0 comments on commit 916f926

Please sign in to comment.