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

Unified Diff: tracing/tracing/model/kernel.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/ir_coverage.html ('k') | tracing/tracing/model/location.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tracing/tracing/model/kernel.html
diff --git a/tracing/tracing/model/kernel.html b/tracing/tracing/model/kernel.html
index 58df303201cf00f409a69a790ecb8f191458fcae..b04658146d94864b090ce67cf8600a2ff619cb7f 100644
--- a/tracing/tracing/model/kernel.html
+++ b/tracing/tracing/model/kernel.html
@@ -61,8 +61,9 @@ tr.exportTo('tr.model', function() {
* it does not exist.
*/
getOrCreateCpu: function(cpuNumber) {
- if (!this.cpus[cpuNumber])
+ if (!this.cpus[cpuNumber]) {
this.cpus[cpuNumber] = new Cpu(this, cpuNumber);
+ }
return this.cpus[cpuNumber];
},
@@ -89,8 +90,9 @@ tr.exportTo('tr.model', function() {
*/
get bestGuessAtCpuCount() {
var realCpuCount = tr.b.dictionaryLength(this.cpus);
- if (realCpuCount !== 0)
+ if (realCpuCount !== 0) {
return realCpuCount;
+ }
return this.softwareMeasuredCpuCount;
},
@@ -113,8 +115,9 @@ tr.exportTo('tr.model', function() {
addCategoriesToDict: function(categoriesDict) {
ProcessBase.prototype.addCategoriesToDict.call(this, categoriesDict);
- for (var cpuNumber in this.cpus)
+ for (var cpuNumber in this.cpus) {
this.cpus[cpuNumber].addCategoriesToDict(categoriesDict);
+ }
},
getSettingsKey: function() {
« no previous file with comments | « tracing/tracing/model/ir_coverage.html ('k') | tracing/tracing/model/location.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698