Skip to content

Commit

Permalink
feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickhulce committed May 6, 2018
1 parent da6d230 commit fc9a3cb
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 195 deletions.
4 changes: 2 additions & 2 deletions lighthouse-core/audits/audit.js
Original file line number Diff line number Diff line change
Expand Up @@ -186,10 +186,10 @@ class Audit {
score,
rawValue: result.rawValue,

displayValue: result.displayValue || '',
displayValue: result.displayValue,
explanation: result.explanation,
errorMessage: result.errorMessage,
warnings: result.warnings || [],
warnings: result.warnings,

extendedInfo: result.extendedInfo,
scoreDisplayMode,
Expand Down
2 changes: 1 addition & 1 deletion lighthouse-core/report/html/renderer/report-renderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ if (typeof module !== 'undefined' && module.exports) {
* description: string,
* explanation: (string|undefined),
* errorMessage: (string|undefined),
* displayValue: (string|Array<string|number>),
* displayValue: (string|Array<string|number>|undefined),
* helpText: string,
* scoreDisplayMode: string,
* extendedInfo: Object,
Expand Down
2 changes: 1 addition & 1 deletion lighthouse-core/runner.js
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ class Runner {
for (const audit of auditResults) {
resultsById[audit.name] = audit;

if (audit.warnings.length) {
if (audit.warnings && audit.warnings.length) {
const prefixedWarnings = audit.warnings.map(msg => `${audit.description}: ${msg}`);
lighthouseRunWarnings.push(...prefixedWarnings);
}
Expand Down
Loading

0 comments on commit fc9a3cb

Please sign in to comment.