Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit feabaa2

Browse filesBrowse files
committed
Replace a now empty concat w/ clone
Signed-off-by: Nick Semenkovich <semenko@alum.mit.edu>
1 parent 5eaa558 commit feabaa2
Copy full SHA for feabaa2

File tree

Expand file treeCollapse file tree

1 file changed

+5
-2
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+5
-2
lines changed
Open diff view settings
Collapse file

‎chromium/rules.js‎

Copy file name to clipboardExpand all lines: chromium/rules.js
+5-2Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -190,8 +190,11 @@ RuleSets.prototype = {
190190

191191
var tmp, t;
192192
var results = [];
193-
if (this.targets[host])
194-
results = results.concat(this.targets[host]);
193+
if (this.targets[host]) {
194+
// Copy the host targets so we don't modify them.
195+
results = this.targets[host].slice();
196+
}
197+
195198
// replace each portion of the domain with a * in turn
196199
var segmented = host.split(".");
197200
for (var i = 0; i < segmented.length; ++i) {

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.