Skip to content

Commit f64383f

Browse files
committed
Fix conditional indent and remove ruleset counter
1 parent 0fce2c8 commit f64383f

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

src/chrome/content/code/HTTPSRules.js

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,12 @@ function CookieRule(host, cookiename) {
1919
//this.name_c = new RegExp(cookiename);
2020
}
2121

22-
ruleset_counter = 0;
2322
function RuleSet(id, name, xmlName, match_rule, default_off, platform) {
2423
if(xmlName == "WordPress.xml" || xmlName == "Github.xml") {
2524
this.log(NOTE, "RuleSet( name="+name+", xmlName="+xmlName+", match_rule="+match_rule+", default_off="+default_off+", platform="+platform+" )");
2625
}
2726

2827
this.id=id;
29-
ruleset_counter += 1;
3028
this.on_by_default = true;
3129
this.compiled = false;
3230
this.name = name;
@@ -39,10 +37,9 @@ function RuleSet(id, name, xmlName, match_rule, default_off, platform) {
3937
// "valueless"
4038
this.on_by_default = false;
4139
}
42-
if (platform)
43-
if (platform.search(HTTPSRules.localPlatformRegexp) == -1) {
44-
this.on_by_default = false;
45-
}
40+
if (platform && platform.search(HTTPSRules.localPlatformRegexp) == -1) {
41+
this.on_by_default = false;
42+
}
4643

4744
this.rules = [];
4845
this.exclusions = [];

0 commit comments

Comments
 (0)