Skip to content

Commit 775b7ca

Browse files
committed
remove duplicate errors
1 parent 04434a2 commit 775b7ca

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

lib/settings.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,16 @@ class Settings {
162162
return
163163
}
164164

165+
//remove nulls and undefined in the results
166+
this.results = this.results.filter((thing) => thing ? true : false)
167+
168+
//remove duplicate rows in this.results
169+
this.results = this.results.filter((thing, index, self) => {
170+
return index === self.findIndex((t) => {
171+
return t.type === thing.type && t.repo === thing.repo && t.plugin === thing.plugin
172+
})
173+
})
174+
165175
let error = false
166176
// Different logic
167177
const stats = {

0 commit comments

Comments
 (0)