Skip to content

Commit

Permalink
Merge pull request #70 from ADalzon-Groupon/audit_details_fix
Browse files Browse the repository at this point in the history
Lighthouse audit details fix
  • Loading branch information
aotarola authored Jul 15, 2021
2 parents ee421bd + 11d8ea9 commit 8ab32f4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/browser/lighthouse.js
Original file line number Diff line number Diff line change
Expand Up @@ -138,8 +138,7 @@ function parseLhResult(results) {
notApplicableObj[id] = auditInfo;
} else if (scoreDisplayMode !== 'manual') {
const snippets = [];
if (details && details.items.length) {
details.items.forEach(item =>
(details && details.items || []).forEach(item =>
snippets.push((item.node && item.node.snippet) || '')
);
}
Expand Down

0 comments on commit 8ab32f4

Please sign in to comment.