Skip to content

Commit

Permalink
Fix: Infinite loop in bower checks (fixes #186) (#188)
Browse files Browse the repository at this point in the history
  • Loading branch information
oliverfoster authored Feb 21, 2023
1 parent cb01ed6 commit 439f84b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/integration/Plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ export default class Plugin {
} catch (err) {
const isFinished = (err?.code === 'ENOTFOUND' || attemptCount >= BOWER_MAX_TRY)
if (isFinished) return null
return await perform(attemptCount++)
return await perform(attemptCount + 1)
}
}
const info = await perform()
Expand Down

0 comments on commit 439f84b

Please sign in to comment.