Skip to content

Commit 689290b

Browse files
committed
refactor: fixed xo aspect unicorn/prevent-abbreviations
The variable params should be named parameters. A more descriptive name will do too.
1 parent ccd29f5 commit 689290b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/loading-attribute-polyfill.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,11 @@ if ('IntersectionObserver' in window) {
5151
*/
5252
function removeLazyPolyfillURLParts(urlString) {
5353
const url = new URL(urlString);
54-
let params = url.searchParams;
54+
let parameters = url.searchParams;
5555

56-
params.delete('loading');
57-
params.delete('image-width');
58-
params.delete('image-height');
56+
parameters.delete('loading');
57+
parameters.delete('image-width');
58+
parameters.delete('image-height');
5959

6060
return url.href;
6161
}

0 commit comments

Comments
 (0)