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

Unified Diff: tracing/tracing/base/math/quad.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/piecewise_linear_function.html ('k') | tracing/tracing/base/math/quad_test.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tracing/tracing/base/math/quad.html
diff --git a/tracing/tracing/base/math/quad.html b/tracing/tracing/base/math/quad.html
index 5ead839bf7bc2c3f091f952fa69b2258d7ffc663..517c25530fdcdfe28174efca5bb02591b0a82cc9 100644
--- a/tracing/tracing/base/math/quad.html
+++ b/tracing/tracing/base/math/quad.html
@@ -11,8 +11,9 @@ found in the LICENSE file.
tr.exportTo('tr.b.math', function() {
var tmpVec2s = [];
- for (var i = 0; i < 8; i++)
+ for (var i = 0; i < 8; i++) {
tmpVec2s[i] = vec2.create();
+ }
var tmpVec2a = vec4.create();
var tmpVec4a = vec4.create();
@@ -70,8 +71,9 @@ tr.exportTo('tr.b.math', function() {
};
Quad.from8Array = function(arr) {
- if (arr.length !== 8)
+ if (arr.length !== 8) {
throw new Error('Array must be 8 long');
+ }
var q = new Quad();
q.p1[0] = arr[0];
q.p1[1] = arr[1];
« no previous file with comments | « tracing/tracing/base/math/piecewise_linear_function.html ('k') | tracing/tracing/base/math/quad_test.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698