Skip to content

Commit

Permalink
inspector: removing checking of non existent field in lib/inspector.js
Browse files Browse the repository at this point in the history
Seems like sessionAttached doesn't exist and no more assigned anywhere

PR-URL: #27919
Reviewed-By: Anna Henningsen <[email protected]>
Reviewed-By: Eugene Ostroukhov <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Rich Trott <[email protected]>
Reviewed-By: Ruben Bridgewater <[email protected]>
  • Loading branch information
Keroosha authored and targos committed May 31, 2019
1 parent b5b234d commit 512ab1f
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions lib/inspector.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,8 @@ class Session extends EventEmitter {
connect() {
if (this[connectionSymbol])
throw new ERR_INSPECTOR_ALREADY_CONNECTED('The inspector session');
const connection =
this[connectionSymbol] =
new Connection((message) => this[onMessageSymbol](message));
if (connection.sessionAttached) {
throw new ERR_INSPECTOR_ALREADY_CONNECTED('Another inspector session');
}
this[connectionSymbol] = connection;
}

[onMessageSymbol](message) {
Expand Down

0 comments on commit 512ab1f

Please sign in to comment.