Skip to content

Commit

Permalink
Make closure compiler happy
Browse files Browse the repository at this point in the history
  • Loading branch information
kdzwinel committed Jan 25, 2018
1 parent f157e2c commit e462ad4
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions lighthouse-core/report/v2/renderer/category-renderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ class CategoryRenderer {
* @param {!DetailsRenderer} detailsRenderer
*/
constructor(dom, detailsRenderer) {
/** @private {!DOM} */
/** @protected {!DOM} */
this._dom = dom;
/** @private {!DetailsRenderer} */
/** @protected {!DetailsRenderer} */
this._detailsRenderer = detailsRenderer;
/** @private {!Document|!Element} */
/** @protected {!Document|!Element} */
this._templateContext = this._dom.document();

this._detailsRenderer.setTemplateContext(this._templateContext);
Expand Down Expand Up @@ -293,13 +293,14 @@ class CategoryRenderer {
const passedElements = /** @type {!Array<!Element>} */ ([]);
const notApplicableElements = /** @type {!Array<!Element>} */ ([]);

auditsUngrouped.failed
.forEach(audit => failedElements.push(this._renderAudit(audit)));
auditsUngrouped.passed
.forEach(audit => passedElements.push(this._renderAudit(audit)));
auditsUngrouped.notApplicable
.forEach(audit => notApplicableElements.push(this._renderAudit(audit)));
auditsUngrouped.failed.forEach((/** @type {!ReportRenderer.AuditJSON} */ audit) =>
failedElements.push(this._renderAudit(audit)));
auditsUngrouped.passed.forEach((/** @type {!ReportRenderer.AuditJSON} */ audit) =>
passedElements.push(this._renderAudit(audit)));
auditsUngrouped.notApplicable.forEach((/** @type {!ReportRenderer.AuditJSON} */ audit) =>
notApplicableElements.push(this._renderAudit(audit)));

/** @type {number} */
let failedAuditsCount = failedElements.length;

Object.keys(auditsGroupedByGroup).forEach(groupId => {
Expand Down

0 comments on commit e462ad4

Please sign in to comment.