Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
darrachequesne committed Sep 18, 2024
1 parent fcec1f4 commit 77aa185
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/engine.io/lib/socket.ts
Original file line number Diff line number Diff line change
Expand Up @@ -554,7 +554,10 @@ export class Socket extends EventEmitter {
* @return {Socket} for chaining
*/
public close(discard?: boolean) {
if (discard && (this.readyState === "open" || this.readyState === "closing")) {
if (
discard &&
(this.readyState === "open" || this.readyState === "closing")
) {
return this.closeTransport(discard);
}

Expand Down

0 comments on commit 77aa185

Please sign in to comment.