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

Unified Diff: tracing/tracing/model/thread_time_slice.html

Issue 2776653002: [ESLint] Fix violations when enabling curly rule in eslint. (Closed)
Patch Set: rebase 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
« no previous file with comments | « tracing/tracing/model/thread_test.html ('k') | tracing/tracing/model/time_to_object_instance_map.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tracing/tracing/model/thread_time_slice.html
diff --git a/tracing/tracing/model/thread_time_slice.html b/tracing/tracing/model/thread_time_slice.html
index e7889784bece3d91de2b254ed967b74ea95bf588..d851722e3b720f4514b57fc759385336b32fc6b8 100644
--- a/tracing/tracing/model/thread_time_slice.html
+++ b/tracing/tracing/model/thread_time_slice.html
@@ -99,23 +99,19 @@ tr.exportTo('tr.model', function() {
},
getAssociatedCpuSlice: function() {
- if (!this.cpuOnWhichThreadWasRunning)
- return undefined;
+ if (!this.cpuOnWhichThreadWasRunning) return undefined;
var cpuSlices = this.cpuOnWhichThreadWasRunning.slices;
for (var i = 0; i < cpuSlices.length; i++) {
var cpuSlice = cpuSlices[i];
- if (cpuSlice.start !== this.start)
- continue;
- if (cpuSlice.duration !== this.duration)
- continue;
+ if (cpuSlice.start !== this.start) continue;
+ if (cpuSlice.duration !== this.duration) continue;
return cpuSlice;
}
return undefined;
},
getCpuSliceThatTookCpu: function() {
- if (this.cpuOnWhichThreadWasRunning)
- return undefined;
+ if (this.cpuOnWhichThreadWasRunning) return undefined;
var curIndex = this.thread.indexOfTimeSlice(this);
var cpuSliceWhenLastRunning;
while (curIndex >= 0) {
@@ -127,18 +123,17 @@ tr.exportTo('tr.model', function() {
cpuSliceWhenLastRunning = curSlice.getAssociatedCpuSlice();
break;
}
- if (!cpuSliceWhenLastRunning)
- return undefined;
+ if (!cpuSliceWhenLastRunning) return undefined;
var cpu = cpuSliceWhenLastRunning.cpu;
var indexOfSliceOnCpuWhenLastRunning =
cpu.indexOf(cpuSliceWhenLastRunning);
var nextRunningSlice = cpu.slices[indexOfSliceOnCpuWhenLastRunning + 1];
- if (!nextRunningSlice)
- return undefined;
+ if (!nextRunningSlice) return undefined;
if (Math.abs(nextRunningSlice.start - cpuSliceWhenLastRunning.end) <
- 0.00001)
+ 0.00001) {
return nextRunningSlice;
+ }
return undefined;
}
};
« no previous file with comments | « tracing/tracing/model/thread_test.html ('k') | tracing/tracing/model/time_to_object_instance_map.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698