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

Unified Diff: tracing/tracing/base/rect.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/rect.html
diff --git a/tracing/tracing/base/rect.html b/tracing/tracing/base/rect.html
index 1ceb39933bcdffb7a2776a3276a60e2132ec9541..450de0a6fb9247a754686e0edb89636979cbe67c 100644
--- a/tracing/tracing/base/rect.html
+++ b/tracing/tracing/base/rect.html
@@ -31,8 +31,9 @@ tr.exportTo('tr.b', 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];

Powered by Google App Engine
This is Rietveld 408576698