Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: chrome/content/ui/filters-backup.js

Issue 5738402414592000: Issue 1602 - Pass array directly from backupCustomFilters() to IO.writeToFile() (Closed)
Patch Set: Created April 2, 2015, 5 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/content/ui/filters-backup.js
===================================================================
--- a/chrome/content/ui/filters-backup.js
+++ b/chrome/content/ui/filters-backup.js
@@ -325,13 +325,7 @@
if (checksum)
list.splice(1, 0, "! Checksum: " + checksum);
- function* generator()
- {
- for (let i = 0; i < list.length; i++)
- yield list[i];
- }
-
- IO.writeToFile(file, generator(), function(e)
+ IO.writeToFile(file, list, function(e)
{
if (e)
{
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld