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

Unified Diff: tracing/tracing/ui/extras/about_tracing/mock_tracing_controller_client.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
Index: tracing/tracing/ui/extras/about_tracing/mock_tracing_controller_client.html
diff --git a/tracing/tracing/ui/extras/about_tracing/mock_tracing_controller_client.html b/tracing/tracing/ui/extras/about_tracing/mock_tracing_controller_client.html
index aba17c374d053c63018c424490d4181d55200351..04c93f5f653a8f117600a69c7f68bf8fcd86388b 100644
--- a/tracing/tracing/ui/extras/about_tracing/mock_tracing_controller_client.html
+++ b/tracing/tracing/ui/extras/about_tracing/mock_tracing_controller_client.html
@@ -39,8 +39,9 @@ tr.exportTo('tr.ui.e.about_tracing', function() {
_request: function(method, args) {
return new Promise(function(resolve) {
var requestIndex = this.nextRequestIndex;
- if (requestIndex >= this.requests.length)
+ if (requestIndex >= this.requests.length) {
throw new Error('Unhandled request');
+ }
if (!this.allowLooping) {
this.nextRequestIndex++;
} else {
@@ -56,8 +57,9 @@ tr.exportTo('tr.ui.e.about_tracing', function() {
},
assertAllRequestsHandled: function() {
- if (this.allowLooping)
+ if (this.allowLooping) {
throw new Error('Incompatible with allowLooping');
+ }
assert.equal(this.requests.length, this.nextRequestIndex);
},

Powered by Google App Engine
This is Rietveld 408576698