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

Unified Diff: tracing/tracing/ui/extras/system_stats/system_stats_snapshot_view.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
Index: tracing/tracing/ui/extras/system_stats/system_stats_snapshot_view.html
diff --git a/tracing/tracing/ui/extras/system_stats/system_stats_snapshot_view.html b/tracing/tracing/ui/extras/system_stats/system_stats_snapshot_view.html
index 7afcce6a75f3493b6285805daa8636152b49d76f..86e340a60540485f65f5fe8623468c859b933be9 100644
--- a/tracing/tracing/ui/extras/system_stats/system_stats_snapshot_view.html
+++ b/tracing/tracing/ui/extras/system_stats/system_stats_snapshot_view.html
@@ -61,10 +61,11 @@ tr.exportTo('tr.ui.e.system_stats', function() {
if (stats[statName] instanceof Object) {
Polymer.dom(statList).appendChild(this.buildList_(stats[statName]));
} else {
- if (this.isFloat(stats[statName]))
+ if (this.isFloat(stats[statName])) {
Polymer.dom(statText).textContent += stats[statName].toFixed(2);
- else
+ } else {
Polymer.dom(statText).textContent += stats[statName];
+ }
}
}

Powered by Google App Engine
This is Rietveld 408576698