From ac3969d21baa3af9d3e442ecc681afe687714b7c Mon Sep 17 00:00:00 2001 From: xhayper Date: Fri, 29 Jul 2022 13:15:16 +0700 Subject: [PATCH] feat: Implemented discordjs/RPC#152 --- src/transport/ipc.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/transport/ipc.ts b/src/transport/ipc.ts index 3a3e7ff..d18a267 100644 --- a/src/transport/ipc.ts +++ b/src/transport/ipc.ts @@ -95,8 +95,7 @@ export class IPCTransport extends Transport { return; } else if (process.platform === 'linux') { socket = await createSocket(formatFunc(i, true)).catch(() => null); - if (socket) resolve(socket); - return; + if (socket) { resolve(socket); return; } } }