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

Unified Diff: tracing/tracing/base/range_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/base/range_utils.html
diff --git a/tracing/tracing/base/range_utils.html b/tracing/tracing/base/range_utils.html
index 06127c057530fa972f17e01957c3fb1cd74175bd..6045991165df906c66a7960d46ebe4f436746193 100644
--- a/tracing/tracing/base/range_utils.html
+++ b/tracing/tracing/base/range_utils.html
@@ -46,15 +46,13 @@ tr.exportTo('tr.b', function() {
}
function flushCurrentMergeBuffer() {
- if (currentMergeBuffer.length === 0)
- return;
+ if (currentMergeBuffer.length === 0) return;
mergedEvents.push(mergeFunction(currentMergeBuffer));
currentMergeBuffer = [];
// Refill merge buffer if needed.
- if (remainingEvents.length !== 0)
- beginMerging();
+ if (remainingEvents.length !== 0) beginMerging();
}
beginMerging();
@@ -81,13 +79,11 @@ tr.exportTo('tr.b', function() {
// Pass in |opt_totalRange| in order to find empty ranges before the first of
// |inRanges| and after the last of |inRanges|.
function findEmptyRangesBetweenRanges(inRanges, opt_totalRange) {
- if (opt_totalRange && opt_totalRange.isEmpty)
- opt_totalRange = undefined;
+ if (opt_totalRange && opt_totalRange.isEmpty) opt_totalRange = undefined;
var emptyRanges = [];
if (!inRanges.length) {
- if (opt_totalRange)
- emptyRanges.push(opt_totalRange);
+ if (opt_totalRange) emptyRanges.push(opt_totalRange);
return emptyRanges;
}
@@ -103,8 +99,7 @@ tr.exportTo('tr.b', function() {
inRanges.forEach(function(range, index) {
for (var otherIndex = 0; otherIndex < inRanges.length; ++otherIndex) {
- if (index === otherIndex)
- continue;
+ if (index === otherIndex) continue;
var other = inRanges[otherIndex];
if (other.min > range.max) {

Powered by Google App Engine
This is Rietveld 408576698