Skip to content

Commit

Permalink
remove duplicate errors
Browse files Browse the repository at this point in the history
  • Loading branch information
decyjphr committed Sep 17, 2024
1 parent 04434a2 commit 775b7ca
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions lib/settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,16 @@ class Settings {
return
}

//remove nulls and undefined in the results
this.results = this.results.filter((thing) => thing ? true : false)

//remove duplicate rows in this.results
this.results = this.results.filter((thing, index, self) => {
return index === self.findIndex((t) => {
return t.type === thing.type && t.repo === thing.repo && t.plugin === thing.plugin
})
})

let error = false
// Different logic
const stats = {
Expand Down

0 comments on commit 775b7ca

Please sign in to comment.