console_view: Simplify buildersById code

With the fakechanges fixed, we can now simplify the builders by ID code.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Richard Purdie 2023-03-22 23:59:22 +00:00
parent 4718142be7
commit e54d0c5f83

View File

@ -446,12 +446,11 @@ class Console {
change.caption = rev; change.caption = rev;
this.fakechanges.push(change) this.fakechanges.push(change)
} }
} }
if (change.buildersById[build.builderid].builds.indexOf(build) == -1) {
change.buildersById[build.builderid].builds.push(build); change.buildersById[build.builderid].builds.push(build);
} }
}
makeFakeChange(revision, when_timestamp, comments) { makeFakeChange(revision, when_timestamp, comments) {
const change = { const change = {