Skip to content

Commit

Permalink
Remove leftover try..catch block
Browse files Browse the repository at this point in the history
  • Loading branch information
WesSouza committed Dec 30, 2023
1 parent 06d2fa7 commit 3860d1c
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions packages/lgtv-ip-control/src/classes/TinySocket.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,14 +122,10 @@ export class TinySocket {

await this.wrap<undefined>((resolve) => {
this.#client.setTimeout(this.settings.networkTimeout);
try {
this.#client.connect(this.settings.networkPort, this.host, () =>
resolve(undefined),
);
this.#connected = true;
} catch (e) {
console.error(e);
}
this.#client.connect(this.settings.networkPort, this.host, () => {
resolve(undefined);
});
this.#connected = true;
});
}

Expand Down

0 comments on commit 3860d1c

Please sign in to comment.