1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-11-23 19:03:02 +01:00

Use const when value does not change

This commit is contained in:
Raymond Hill 2020-11-02 04:57:42 -05:00
parent c7bed84ab8
commit d536c7ab11
No known key found for this signature in database
GPG Key ID: 25E1490B761470C2

View File

@ -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 = [];