Skip to content

Commit

Permalink
chore: update lib/browser/lighthouse.js
Browse files Browse the repository at this point in the history
Co-authored-by: David Bushong <[email protected]>
  • Loading branch information
2 people authored and aotarola committed Jul 19, 2021
1 parent 6129918 commit 9193776
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 && 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 9193776

Please sign in to comment.