From d536c7ab11985d090c79d22277218ce9e3a8ef06 Mon Sep 17 00:00:00 2001 From: Raymond Hill Date: Mon, 2 Nov 2020 04:57:42 -0500 Subject: [PATCH] Use `const` when value does not change --- src/js/static-net-filtering.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/js/static-net-filtering.js b/src/js/static-net-filtering.js index 6cb1b6fc5..3894142d4 100644 --- a/src/js/static-net-filtering.js +++ b/src/js/static-net-filtering.js @@ -3558,7 +3558,7 @@ FilterContainer.prototype.filterQuery = function(fctxt) { const directives = this.matchAndFetchModifiers(fctxt, 'queryprune'); if ( directives === undefined ) { return; } const url = fctxt.url; - let qpos = url.indexOf('?'); + const qpos = url.indexOf('?'); if ( qpos === -1 ) { return; } const params = new self.URLSearchParams(url.slice(qpos + 1)); const out = [];