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

Unified Diff: tracing/tracing/value/histogram.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/value/diagnostics/scalar.html ('k') | tracing/tracing/value/histogram_test.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tracing/tracing/value/histogram.html
diff --git a/tracing/tracing/value/histogram.html b/tracing/tracing/value/histogram.html
index 84db948f63c1efdb8e4e6d8e2e79c985b73b591c..c4953e31b6609fb50fbe5b4713cc554c4f76dde9 100644
--- a/tracing/tracing/value/histogram.html
+++ b/tracing/tracing/value/histogram.html
@@ -350,10 +350,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;
« no previous file with comments | « tracing/tracing/value/diagnostics/scalar.html ('k') | tracing/tracing/value/histogram_test.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698