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

Unified Diff: tracing/tracing/metrics/v8/utils.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/metrics/v8/utils.html
diff --git a/tracing/tracing/metrics/v8/utils.html b/tracing/tracing/metrics/v8/utils.html
index 79c3af24722c62e9f7fb653982cbe07a79a38eef..f075425a12bdb605b786cce83eb96389739f77ca 100644
--- a/tracing/tracing/metrics/v8/utils.html
+++ b/tracing/tracing/metrics/v8/utils.html
@@ -183,8 +183,8 @@ 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.mergeRanges(
intervals.map(x => { return { min: x.start, max: x.end }; }), 1e-6,
function(ranges) {
@@ -209,8 +209,9 @@ 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)
+ if (startOfFirstDumpWithV8 === Infinity) {
return new tr.b.Range(); // Empty range.
+ }
return tr.b.Range.fromExplicitRange(startOfFirstDumpWithV8, Infinity);
}

Powered by Google App Engine
This is Rietveld 408576698