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

Unified Diff: tracing/tracing/value/histogram.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/value/histogram.html
diff --git a/tracing/tracing/value/histogram.html b/tracing/tracing/value/histogram.html
index 30979e1fcfdb8179676567c70e0a78c244de3390..25375d216d3ffd9a2ae427514ecc370021cce9ad 100644
--- a/tracing/tracing/value/histogram.html
+++ b/tracing/tracing/value/histogram.html
@@ -352,10 +352,12 @@ tr.exportTo('tr.v', function() {
for (let bin of this.allBins) {
valuesToSkip -= bin.count;
if (valuesToSkip >= 0) continue;
- if (bin.range.min === -Number.MAX_VALUE)
+ if (bin.range.min === -Number.MAX_VALUE) {
return bin.range.max;
- if (bin.range.max === Number.MAX_VALUE)
+ }
+ if (bin.range.max === Number.MAX_VALUE) {
return bin.range.min;
+ }
return bin.range.center;
}
return this.allBins[this.allBins.length - 1].range.min;

Powered by Google App Engine
This is Rietveld 408576698