Skip to content

Commit

Permalink
Handle empty fails
Browse files Browse the repository at this point in the history
  • Loading branch information
phillmac committed May 21, 2021
1 parent fc7aea4 commit 24b7962
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ignore-trackers.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ async function run () {

const blRemove = blContents
.filter((tRem) =>
(!(trackerIgnore.includes(tRem)) && (fails[tRem].length < minErrors)))
(!(trackerIgnore.includes(tRem)) && (fails[tRem]?.length < minErrors)))
.filter((tRem) => expBackoffFilter(tRem))
if (blRemove.length > 0) {
await redisClient.sremAsync('tracker_ignore', ...blRemove)
Expand Down

0 comments on commit 24b7962

Please sign in to comment.