Explorar o código

Merge pull request #1 from HarshCasper/deepsource-fix-93544174

Remove unnecessary boolean casts
Harsh Bardhan Mishra %!s(int64=4) %!d(string=hai) anos
pai
achega
e6a42beb89
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      lib/socket.ts

+ 1 - 1
lib/socket.ts

@@ -157,7 +157,7 @@ export class Socket extends EventEmitter {
   }
 
   private _cleanup(): void {
-    if (!!this._socket) {
+    if (this._socket) {
       this._socket.onopen = this._socket.onmessage = this._socket.onclose = null;
       this._socket.close();
       this._socket = undefined;