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

Unified Diff: tracing/tracing/base/math/range_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/base/math/range.html ('k') | tracing/tracing/base/math/rect.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tracing/tracing/base/math/range_utils.html
diff --git a/tracing/tracing/base/math/range_utils.html b/tracing/tracing/base/math/range_utils.html
index dee618299f7d5a40ed446c63ccd04ac5555f6043..ad9f26b0b8cf0a521d527e896e3e6ca00ee16666 100644
--- a/tracing/tracing/base/math/range_utils.html
+++ b/tracing/tracing/base/math/range_utils.html
@@ -46,15 +46,13 @@ tr.exportTo('tr.b.math', 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.math', 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.math', 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) {
« no previous file with comments | « tracing/tracing/base/math/range.html ('k') | tracing/tracing/base/math/rect.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698