Sitelet https://github.com/open-rpc/client-js/commit/5cfad43
Skip to content

Commit 5cfad43

Browse files
committed
fix: remove unneeded null checks
1 parent e0b3057 commit 5cfad43

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

‎src/transports/WebSocketTransport.ts‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,7 @@ class WebSocketTransport implements ITransport {
88
}
99
public connect(): Promise<any> {
1010
return new Promise((resolve, reject) => {
11-
if (!this.connection) { return; }
1211
const cb = () => {
13-
if (!this.connection) { return; }
1412
this.connection.removeEventListener("open", cb);
1513
resolve();
1614
};

0 commit comments

Comments
 (0)