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

Unified Diff: tracing/tracing/base/math/math.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/bbox2.html ('k') | tracing/tracing/base/math/piecewise_linear_function.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tracing/tracing/base/math/math.html
diff --git a/tracing/tracing/base/math/math.html b/tracing/tracing/base/math/math.html
index e0658a4160bfecadbc1e49334f3c48f43c4a55a7..85e6547a18cb2de20ff1be01167bed44668e511a 100644
--- a/tracing/tracing/base/math/math.html
+++ b/tracing/tracing/base/math/math.html
@@ -35,8 +35,7 @@ tr.exportTo('tr.b.math', function() {
/* Returns true when x and y are within delta of each other. */
function approximately(x, y, delta) {
- if (delta === undefined)
- delta = 1e-9;
+ if (delta === undefined) delta = 1e-9;
return Math.abs(x - y) < delta;
}
@@ -95,8 +94,7 @@ tr.exportTo('tr.b.math', function() {
var tmpMat2d = mat2d.create();
vec2.createFromArray = function(arr) {
- if (arr.length !== 2)
- throw new Error('Should be length 2');
+ if (arr.length !== 2) throw new Error('Should be length 2');
var v = vec2.create();
vec2.set(v, arr[0], arr[1]);
return v;
@@ -120,8 +118,7 @@ tr.exportTo('tr.b.math', function() {
};
vec2.interpolatePiecewiseFunction = function(points, x) {
- if (x < points[0][0])
- return points[0][1];
+ if (x < points[0][0]) return points[0][1];
for (var i = 1; i < points.length; ++i) {
if (x < points[i][0]) {
var percent = normalize(x, points[i - 1][0], points[i][0]);
« no previous file with comments | « tracing/tracing/base/math/bbox2.html ('k') | tracing/tracing/base/math/piecewise_linear_function.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698