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

Unified Diff: tracing/tracing/model/async_slice_group.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/async_slice.html ('k') | tracing/tracing/model/clock_sync_manager.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tracing/tracing/model/async_slice_group.html
diff --git a/tracing/tracing/model/async_slice_group.html b/tracing/tracing/model/async_slice_group.html
index e5066eff824d6b540a6617d79e538f42e7caf0ad..afe9ceaf5823921bf0f67d9095f4855e8784f0f1 100644
--- a/tracing/tracing/model/async_slice_group.html
+++ b/tracing/tracing/model/async_slice_group.html
@@ -46,11 +46,9 @@ tr.exportTo('tr.model', function() {
},
getSettingsKey: function() {
- if (!this.name_)
- return undefined;
+ if (!this.name_) return undefined;
var parentKey = this.parentContainer_.getSettingsKey();
- if (!parentKey)
- return undefined;
+ if (!parentKey) return undefined;
return parentKey + '.' + this.name_;
},
@@ -80,8 +78,7 @@ tr.exportTo('tr.model', function() {
slice.start = (slice.start + amount);
// Shift all nested subSlices recursively.
var shiftSubSlices = function(subSlices) {
- if (subSlices === undefined || subSlices.length === 0)
- return;
+ if (subSlices === undefined || subSlices.length === 0) return;
for (var sJ = 0; sJ < subSlices.length; sJ++) {
subSlices[sJ].start += amount;
shiftSubSlices(subSlices[sJ].subSlices);
@@ -111,10 +108,11 @@ tr.exportTo('tr.model', function() {
get viewSubGroups() {
if (this.viewSubGroups_ === undefined) {
var prefix = '';
- if (this.name !== undefined)
+ if (this.name !== undefined) {
prefix = this.name + '.';
- else
+ } else {
prefix = '';
+ }
var subGroupsByTitle = {};
for (var i = 0; i < this.slices.length; ++i) {
@@ -150,8 +148,9 @@ tr.exportTo('tr.model', function() {
// which is why we don't recurse into the sub-slices here.
for (var slice of this.slices) {
yield slice;
- if (slice.subSlices)
+ if (slice.subSlices) {
yield* slice.subSlices;
+ }
}
},
« no previous file with comments | « tracing/tracing/model/async_slice.html ('k') | tracing/tracing/model/clock_sync_manager.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698