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

Unified Diff: lib/filterStorage.js

Issue 6304089612746752: Issue 196 - Filters added on first-run are being removed immediately (Closed)
Patch Set: Created March 26, 2014, 12:58 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: lib/filterStorage.js
===================================================================
--- a/lib/filterStorage.js
+++ b/lib/filterStorage.js
@@ -468,17 +468,18 @@ let FilterStorage = exports.FilterStorag
if (e || !statData.exists)
{
this.firstRun = true;
this._loading = false;
FilterNotifier.triggerListeners("load");
TimeLine.leave("FilterStorage.loadFromDisk() read callback done");
}
- readFile(sourceFile, 0);
+ else
+ readFile(sourceFile, 0);
}
if (sourceFile)
IO.statFile(sourceFile, callback);
else
callback(true);
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld