Skip to content

Commit

Permalink
closure.
Browse files Browse the repository at this point in the history
  • Loading branch information
paulirish committed Mar 8, 2018
1 parent eb9018e commit 354bc15
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lighthouse-core/report/v2/renderer/category-renderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -203,11 +203,13 @@ class CategoryRenderer {
// While we could support rendering multiple groups of manual audits, it doesn't
// seem desirable for UX or renderer complexity. So we'll throw.
const groupsIds = Array.from(new Set(manualAudits.map(a => a.group)));
// eslint-disable-next-line no-console
/* eslint-disable no-console */
console.assert(groupsIds.length <= 1, 'More than 1 manual audit group found.');
console.assert(!groupsIds.has(undefined), 'Some manual audits don\'t belong to a group');
/* eslint-enable no-console */
if (!groupsIds.length) return;

const groupId = groupsIds[0];
const groupId = /** @type {string} */ (groupsIds[0]);
const auditGroupElem = this.renderAuditGroup(groupDefinitions[groupId], {expandable: true});
auditGroupElem.classList.add('lh-audit-group--manual');

Expand Down

0 comments on commit 354bc15

Please sign in to comment.