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

Unified Diff: tracing/tracing/metrics/v8/utils.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/metrics/v8/gc_metric.html ('k') | tracing/tracing/model/annotation.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tracing/tracing/metrics/v8/utils.html
diff --git a/tracing/tracing/metrics/v8/utils.html b/tracing/tracing/metrics/v8/utils.html
index b394de70dbd69913e86ba1154fd38d97ab8fe2a2..e3e1bd6ea6becc03156074fda26c76ab6f01bbd7 100644
--- a/tracing/tracing/metrics/v8/utils.html
+++ b/tracing/tracing/metrics/v8/utils.html
@@ -183,8 +183,7 @@ tr.exportTo('tr.metrics.v8.utils', function() {
* intervals merged into a single interval.
*/
function unionOfIntervals(intervals) {
- if (intervals.length === 0)
- return [];
+ if (intervals.length === 0) return [];
return tr.b.math.mergeRanges(
intervals.map(x => { return { min: x.start, max: x.end }; }), 1e-6,
function(ranges) {
@@ -209,8 +208,8 @@ tr.exportTo('tr.metrics.v8.utils', function() {
var startOfFirstDumpWithV8 =
model.globalMemoryDumps.filter(hasV8Stats).reduce(
(start, dump) => Math.min(start, dump.start), Infinity);
- if (startOfFirstDumpWithV8 === Infinity)
- return new tr.b.math.Range(); // Empty range.
+ // Empty range.
+ if (startOfFirstDumpWithV8 === Infinity) return new tr.b.math.Range();
return tr.b.math.Range.fromExplicitRange(startOfFirstDumpWithV8, Infinity);
}
« no previous file with comments | « tracing/tracing/metrics/v8/gc_metric.html ('k') | tracing/tracing/model/annotation.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698