Skip to content

Commit bb8be75

Browse files
committed
refactor: fixed xo aspect "53:2 - Split let declarations into multiple statements. - one-var"
1 parent bd34c0c commit bb8be75

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/loading-attribute-polyfill.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@ if ('IntersectionObserver' in window) {
5050
* @param {String} urlString The URL to remove the URL query parts from
5151
*/
5252
function removeLazyPolyfillURLParts(urlString) {
53-
let url = new URL(urlString),
54-
params = url.searchParams;
53+
let url = new URL(urlString);
54+
let params = url.searchParams;
5555

5656
params.delete('loading');
5757
params.delete('image-width');
@@ -77,7 +77,6 @@ function createRegularReference(lazyItem) {
7777
mediaItems.push(lazyItem);
7878

7979
mediaItems.forEach((item) => {
80-
8180
if (item.hasAttribute('src')) {
8281
item.src = removeLazyPolyfillURLParts(item.src);
8382
}

0 commit comments

Comments
 (0)