Skip to content

Commit

Permalink
cleanups
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianaixba committed Nov 23, 2020
1 parent cfd7407 commit bd8b54f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ class UsesOptimizedImages extends ByteEfficiencyAudit {

// If naturalHeight or naturalWidth are undefined, information is not valid, skip.
if (!imageElement.naturalHeight || !imageElement.naturalWidth) continue;

jpegSize = UsesOptimizedImages.estimateJPEGSizeFromDimensions(imageElement);
fromProtocol = false;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ class UsesResponsiveImages extends ByteEfficiencyAudit {
if (!image.resourceSize || image.mimeType === 'image/svg+xml' || image.isCss) {
continue;
}

// If naturalHeight or naturalWidth are undefined, information is not valid, skip.
if (!image.naturalWidth || !image.naturalHeight) continue;

Expand Down

0 comments on commit bd8b54f

Please sign in to comment.