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

Unified Diff: tracing/tracing/ui/extras/about_tracing/inspector_connection.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/inspector_connection.html
diff --git a/tracing/tracing/ui/extras/about_tracing/inspector_connection.html b/tracing/tracing/ui/extras/about_tracing/inspector_connection.html
index fbc7a7ac3f963eebc06352193c45a9be63e4bc67..21e3ea5183d04621bb5c04dc03ed7be4a4e44377 100644
--- a/tracing/tracing/ui/extras/about_tracing/inspector_connection.html
+++ b/tracing/tracing/ui/extras/about_tracing/inspector_connection.html
@@ -31,8 +31,9 @@ tr.exportTo('tr.ui.e.about_tracing', function() {
* @constructor
*/
function InspectorConnection() {
- if (InspectorConnection.instance)
+ if (InspectorConnection.instance) {
throw new Error('Singleton');
+ }
this.nextRequestId_ = 1;
this.pendingRequestResolversId_ = {};
@@ -110,10 +111,11 @@ tr.exportTo('tr.ui.e.about_tracing', function() {
}
};
- if (window.DevToolsHost)
+ if (window.DevToolsHost) {
InspectorConnection.instance = new InspectorConnection();
- else
+ } else {
InspectorConnection.instance = undefined;
+ }
return {
InspectorConnection,

Powered by Google App Engine
This is Rietveld 408576698