Skip to content

Commit

Permalink
closure
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickhulce committed Feb 23, 2018
1 parent 13825cc commit b08335f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lighthouse-core/report/v2/renderer/details-renderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ class DetailsRenderer {
_renderBytes(details) {
// TODO: handle displayUnit once we have something other than 'kb'
const text = Util.formatBytesToKB(details.value, details.granularity);
return this._renderText({text});
return this._renderText({type: 'text', text});
}

/**
Expand All @@ -84,7 +84,7 @@ class DetailsRenderer {
text = Util.formatDuration(details.value);
}

return this._renderText({text});
return this._renderText({type: 'text', text});
}

/**
Expand Down Expand Up @@ -347,8 +347,8 @@ DetailsRenderer.ListDetailsJSON; // eslint-disable-line no-unused-expressions
* @typedef {{
* type: string,
* value: number,
* granularity: number|undefined,
* displayUnit: string|undefined,
* granularity: (number|undefined),
* displayUnit: (string|undefined),
* }}
*/
DetailsRenderer.NumericUnitDetailsJSON; // eslint-disable-line no-unused-expressions
Expand Down

0 comments on commit b08335f

Please sign in to comment.