Skip to content
This repository has been archived by the owner on Feb 13, 2024. It is now read-only.

Commit

Permalink
make retryCondition a constant and return false at the end
Browse files Browse the repository at this point in the history
  • Loading branch information
f2prateek committed Jan 11, 2018
1 parent 5834f10 commit fd7dc00
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ class Analytics {
}
}

var retryCondition = function (error) {
const retryCondition = function (error) {
// Retry Network Errors.
if (axiosRetry.isNetworkError(error)) {
return true
Expand All @@ -272,6 +272,8 @@ var retryCondition = function (error) {
if (error.response.status === 429) {
return true
}

return false
}

module.exports = Analytics

0 comments on commit fd7dc00

Please sign in to comment.