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

Unified Diff: tracing/tracing/model/thread_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.html ('k') | tracing/tracing/model/thread_test.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tracing/tracing/model/thread_slice.html
diff --git a/tracing/tracing/model/thread_slice.html b/tracing/tracing/model/thread_slice.html
index 9361c4935619ebe30467c024b6e66cc51b01b6c4..a48e4a4cdce914c212ccdfd769cfcda6ab96eafa 100644
--- a/tracing/tracing/model/thread_slice.html
+++ b/tracing/tracing/model/thread_slice.html
@@ -45,11 +45,13 @@ tr.exportTo('tr.model', function() {
get overlappingSamples() {
var samples = new tr.model.EventSet();
- if (!this.parentContainer || !this.parentContainer.samples)
+ if (!this.parentContainer || !this.parentContainer.samples) {
return samples;
+ }
this.parentContainer.samples.forEach(function(sample) {
- if (this.start <= sample.start && sample.start <= this.end)
+ if (this.start <= sample.start && sample.start <= this.end) {
samples.push(sample);
+ }
}, this);
return samples;
}
« no previous file with comments | « tracing/tracing/model/thread.html ('k') | tracing/tracing/model/thread_test.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698