Skip to content

Commit

Permalink
fix(table-formatter): account for undefined values (GoogleChrome#1538)
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickhulce authored and paulirish committed Jan 27, 2017
1 parent a6fbab4 commit a32dd21
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lighthouse-core/formatters/table.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ class Table extends Formatter {
output += ' ';
row.cols.forEach(col => {
// Omit code snippet cols.
if (col.startsWith('`') && col.endsWith('`')) {
if (!col || col.startsWith('`') && col.endsWith('`')) {
return;
}
output += `${col} `;
Expand Down

0 comments on commit a32dd21

Please sign in to comment.