Skip to content

Commit

Permalink
Fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
styfle committed Sep 16, 2022
1 parent f5ff3e2 commit 7072a49
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions packages/next/build/webpack/loaders/next-image-loader.js
Expand Up @@ -36,16 +36,12 @@ function nextImageLoader(content) {
if (imageSize.width >= imageSize.height) {
blurWidth = BLUR_IMG_SIZE
blurHeight = Math.max(
Math.round(
(imageSize.height / imageSize.width) * BLUR_IMG_SIZE
),
Math.round((imageSize.height / imageSize.width) * BLUR_IMG_SIZE),
1
)
} else {
blurWidth = Math.max(
Math.round(
(imageSize.width / imageSize.height) * BLUR_IMG_SIZE
),
Math.round((imageSize.width / imageSize.height) * BLUR_IMG_SIZE),
1
)
blurHeight = BLUR_IMG_SIZE
Expand Down

0 comments on commit 7072a49

Please sign in to comment.