Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(276)

Unified Diff: tracing/tracing/importer/simple_line_reader.html

Issue 2776653002: [ESLint] Fix violations when enabling curly rule in eslint. (Closed)
Patch Set: Fix test Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: tracing/tracing/importer/simple_line_reader.html
diff --git a/tracing/tracing/importer/simple_line_reader.html b/tracing/tracing/importer/simple_line_reader.html
index 752bf0f7a4f3dae52b87aaacd826a072c28c490e..636c9e88585a58534928378811ad399703399432 100644
--- a/tracing/tracing/importer/simple_line_reader.html
+++ b/tracing/tracing/importer/simple_line_reader.html
@@ -23,10 +23,10 @@ tr.exportTo('tr.importer', function() {
advanceToLineMatching: function(regex) {
for (; this.curLine_ < this.lines_.length; this.curLine_++) {
var line = this.lines_[this.curLine_];
- if (this.savedLines_ !== undefined)
+ if (this.savedLines_ !== undefined) {
this.savedLines_.push(line);
- if (regex.test(line))
- return true;
+ }
+ if (regex.test(line)) return true;
}
return false;
},

Powered by Google App Engine
This is Rietveld 408576698