Skip to content

Commit be18d9c

Browse files
committed
Whitespace cleanup.
1 parent 3f8df68 commit be18d9c

1 file changed

Lines changed: 6 additions & 7 deletions

File tree

‎chromium/rules.js‎

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ const trivial_rule_from_c = new RegExp("^http:");
1515
const trivial_cookie_name_c = new RegExp(".*");
1616
const trivial_cookie_host_c = new RegExp(".*");
1717

18-
1918
// Empty iterable singleton to reduce memory usage
2019
const nullIterable = Object.create(null, {
2120
[Symbol.iterator]: {
@@ -355,7 +354,7 @@ RuleSets.prototype = {
355354
util.log(util.INFO, 'done removing rule');
356355
return true;
357356
},
358-
357+
359358
/**
360359
* Retrieve stored user rules from localStorage
361360
**/
@@ -523,7 +522,7 @@ RuleSets.prototype = {
523522

524523
// Let's begin search
525524
// Copy the host targsts so we don't modify them.
526-
let results = (this.targets.has(host) ?
525+
let results = (this.targets.has(host) ?
527526
new Set([...this.targets.get(host)]) :
528527
new Set());
529528

@@ -532,15 +531,15 @@ RuleSets.prototype = {
532531
util.log(util.WARN,"Malformed host passed to potentiallyApplicableRulesets: " + host);
533532
return nullIterable;
534533
}
535-
534+
536535
// Replace each portion of the domain with a * in turn
537536
let segmented = host.split(".");
538537
for (let i = 0; i < segmented.length; i++) {
539538
let tmp = segmented[i];
540539
segmented[i] = "*";
541540

542-
results = (this.targets.has(segmented.join(".")) ?
543-
new Set([...results, ...this.targets.get(segmented.join("."))]) :
541+
results = (this.targets.has(segmented.join(".")) ?
542+
new Set([...results, ...this.targets.get(segmented.join("."))]) :
544543
results);
545544

546545
segmented[i] = tmp;
@@ -551,7 +550,7 @@ RuleSets.prototype = {
551550
for (let i = 2; i <= segmented.length - 2; i++) {
552551
let t = "*." + segmented.slice(i, segmented.length).join(".");
553552

554-
results = (this.targets.has(t) ?
553+
results = (this.targets.has(t) ?
555554
new Set([...results, ...this.targets.get(t)]) :
556555
results);
557556
}

0 commit comments

Comments
 (0)