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

Unified Diff: tracing/tracing/model/cpu_slice.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/model/cpu_slice.html
diff --git a/tracing/tracing/model/cpu_slice.html b/tracing/tracing/model/cpu_slice.html
index 53c266c1a5485b999f289613c407ec0517e090b5..026ae29a2a6e67ccc4fa3c629f025d774b441f14 100644
--- a/tracing/tracing/model/cpu_slice.html
+++ b/tracing/tracing/model/cpu_slice.html
@@ -36,15 +36,18 @@ tr.exportTo('tr.model', function() {
},
getAssociatedTimeslice: function() {
- if (!this.threadThatWasRunning)
+ if (!this.threadThatWasRunning) {
return undefined;
+ }
var timeSlices = this.threadThatWasRunning.timeSlices;
for (var i = 0; i < timeSlices.length; i++) {
var timeSlice = timeSlices[i];
- if (timeSlice.start !== this.start)
+ if (timeSlice.start !== this.start) {
continue;
- if (timeSlice.duration !== this.duration)
+ }
+ if (timeSlice.duration !== this.duration) {
continue;
+ }
return timeSlice;
}
return undefined;

Powered by Google App Engine
This is Rietveld 408576698