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

Unified Diff: tracing/tracing/ui/analysis/power_sample_summary_table.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/analysis/power_sample_summary_table.html
diff --git a/tracing/tracing/ui/analysis/power_sample_summary_table.html b/tracing/tracing/ui/analysis/power_sample_summary_table.html
index 0753e3e760d99ab35210e269e3add83ab2af554b..1b4a380762754d634ab5a113ce302749bfce1e30 100644
--- a/tracing/tracing/ui/analysis/power_sample_summary_table.html
+++ b/tracing/tracing/ui/analysis/power_sample_summary_table.html
@@ -72,8 +72,7 @@ Polymer({
},
set samples(samples) {
- if (samples === this.samples)
- return;
+ if (samples === this.samples) return;
this.samples_ =
(samples === undefined) ? new tr.model.EventSet() : samples;
@@ -115,8 +114,7 @@ Polymer({
getTimeWeightedAverageInW: function() {
var energyConsumedInJ = this.getEnergyConsumedInJ();
- if (energyConsumedInJ === 'N/A')
- return 'N/A';
+ if (energyConsumedInJ === 'N/A') return 'N/A';
var durationInS = tr.b.convertUnit(this.samples.bounds.duration,
tr.b.UnitPrefixScale.METRIC.MILLI,
@@ -127,8 +125,7 @@ Polymer({
getEnergyConsumedInJ: function() {
- if (this.samples.length < 2)
- return 'N/A';
+ if (this.samples.length < 2) return 'N/A';
var bounds = this.samples.bounds;
var series = tr.b.getFirstElement(this.samples).series;

Powered by Google App Engine
This is Rietveld 408576698