Skip to content

Commit ccd29f5

Browse files
committed
refactor: fixed xo aspect "53:6 - url is never reassigned. Use const instead. - prefer-const"
1 parent bb8be75 commit ccd29f5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/loading-attribute-polyfill.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ 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);
53+
const url = new URL(urlString);
5454
let params = url.searchParams;
5555

5656
params.delete('loading');

0 commit comments

Comments
 (0)