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

Unified Diff: tracing/tracing/base/math/rect.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_utils.html ('k') | tracing/tracing/base/math/running_statistics.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tracing/tracing/base/math/rect.html
diff --git a/tracing/tracing/base/math/rect.html b/tracing/tracing/base/math/rect.html
index a89d9b9262e650e984f415f8fec524bdbbbe8164..e7e360f3cc27a3d840b5360ab1b10a96de0e240b 100644
--- a/tracing/tracing/base/math/rect.html
+++ b/tracing/tracing/base/math/rect.html
@@ -31,8 +31,9 @@ tr.exportTo('tr.b.math', function() {
};
Rect.fromArray = function(ary) {
- if (ary.length !== 4)
+ if (ary.length !== 4) {
throw new Error('ary.length must be 4');
+ }
var rect = new Rect();
rect.x = ary[0];
rect.y = ary[1];
« no previous file with comments | « tracing/tracing/base/math/range_utils.html ('k') | tracing/tracing/base/math/running_statistics.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698