Skip to content

Commit

Permalink
fix: Fixed retry logic
Browse files Browse the repository at this point in the history
Signed-off-by: Jaid <jaid.jsx@gmail.com>
  • Loading branch information
Jaid committed Dec 14, 2019
1 parent bb0737a commit 582882b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ const fetchUploadsForPath = async (channelPath, options = {}) => {
title: entityDecoder.decode(match.subMatches[1]),
}))
}
if (retries >= 1) {
if (retries <= 1) {
return fetchJob()
}

Expand Down
2 changes: 2 additions & 0 deletions webpack.config.babel.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import configure from "webpack-config-jaid"

export default configure({
publishimo: true,
documentation: true,
})

0 comments on commit 582882b

Please sign in to comment.