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

Unified Diff: tracing/tracing/model/device.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/device.html
diff --git a/tracing/tracing/model/device.html b/tracing/tracing/model/device.html
index 9c8134f1bf31f297f488ea4cfbbe52310182e595..b4ca0797c60324c44e2d2117a0a9fdb8d262c164 100644
--- a/tracing/tracing/model/device.html
+++ b/tracing/tracing/model/device.html
@@ -23,8 +23,9 @@ tr.exportTo('tr.model', function() {
* @extends {tr.model.EventContainer}
*/
function Device(model) {
- if (!model)
+ if (!model) {
throw new Error('Must provide a model.');
+ }
tr.model.EventContainer.call(this);
@@ -97,18 +98,21 @@ tr.exportTo('tr.model', function() {
child.shiftTimestampsForward(amount);
}
- for (var i = 0; i < this.vSyncTimestamps_.length; i++)
+ for (var i = 0; i < this.vSyncTimestamps_.length; i++) {
this.vSyncTimestamps_[i] += amount;
+ }
},
addCategoriesToDict: function(categoriesDict) {
},
childEventContainers: function* () {
- if (this.powerSeries_)
+ if (this.powerSeries_) {
yield this.powerSeries_;
- if (this.cpuUsageSeries_)
+ }
+ if (this.cpuUsageSeries_) {
yield this.cpuUsageSeries_;
+ }
}
};

Powered by Google App Engine
This is Rietveld 408576698