Skip to content

Commit

Permalink
Fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
audiodude committed Nov 14, 2024
1 parent 7cfa7c2 commit 66c6c36
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/renderers/wikimedia-mobile.renderer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,6 @@ export class WikimediaMobileRenderer extends MobileRenderer {

let imgSrc = preparedSrc
let width = preparedWidth
let height: number
if (originalWidth && match && originalWidth < preparedWidth) {
// There was a match on the originalSrc, and it is an image that is smaller than the prepared image.
width = originalWidth
Expand All @@ -150,7 +149,7 @@ export class WikimediaMobileRenderer extends MobileRenderer {
}
// If the above ifs didn't execute, we're using the prepared image.
// This is a no-op if width == preparedWidth.
height = Math.round((preparedHeight * width) / preparedWidth)
const height = Math.round((preparedHeight * width) / preparedWidth)

img.src = urlJoin(protocol, imgSrc)
img.setAttribute('decoding', 'async')
Expand Down

0 comments on commit 66c6c36

Please sign in to comment.