Skip to content

Commit 4694460

Browse files
updated: avoid the use of let
1 parent 80acf74 commit 4694460

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.next.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import domToArray from 'bianco.dom-to-array'
77
*/
88
export function loadImage(img) {
99
const isUrl = typeof img === 'string'
10-
let i = isUrl ? document.createElement('img') : img
10+
const i = isUrl ? document.createElement('img') : img
1111

1212
// this image was already loaded
1313
if (!isUrl && i.complete) return Promise.resolve(i)

0 commit comments

Comments
 (0)