Skip to content
This repository has been archived by the owner on Nov 6, 2023. It is now read-only.

Commit

Permalink
Simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
pde committed Sep 4, 2014
1 parent d3cd03a commit 973f4fd
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/chrome/content/ruleset-tests.js
Expand Up @@ -74,10 +74,9 @@ function testRunner() {
// target is like *.example.wildcard.com, or www.example.*
// let's see what we can do...
var t = target.replace(left_star, "www.");
if (t.indexOf("*") != -1) {
continue;
if (t.indexOf("*") == -1) {
addTestTarget(urls, t, ruleset_ids);
}
addTestTarget(urls, t, ruleset_ids);
}
}

Expand Down Expand Up @@ -108,7 +107,7 @@ function testRunner() {
if(PopupNotifications.getNotification("mixed-content-blocked", gBrowser.getBrowserForTab(tab))) {
// build output to log
ruleset_xmls = '';
for(let i=0; i<urls[number].ruleset_ids.length; i++) {
for(let i=0; i < urls[number].ruleset_ids.length; i++) {
ruleset_xmls += urls[number].ruleset_ids[i].xmlName + ', ';
}
if(ruleset_xmls != '')
Expand Down

0 comments on commit 973f4fd

Please sign in to comment.