From 029eb08506191d47fa095cd498110daa2e066747 Mon Sep 17 00:00:00 2001 From: Shigma Date: Wed, 8 Jan 2025 00:18:40 +0800 Subject: [PATCH] Apply suggestions from code review --- adapters/satori/src/ws.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/adapters/satori/src/ws.ts b/adapters/satori/src/ws.ts index e5fd8fdd..f8935b3b 100644 --- a/adapters/satori/src/ws.ts +++ b/adapters/satori/src/ws.ts @@ -101,12 +101,12 @@ export class SatoriAdapter extends Adapter.WsClient for (const login of parsed.body.logins) { this.getBot(login.platform, login.user.id, login) } - this._metaDispose = this.ctx.satori.proxyUrls.add(...(parsed.body.proxyUrls || [])) + this._metaDispose = this.ctx.satori.proxyUrls.add(...parsed.body.proxyUrls ?? []) } if (parsed.op === Universal.Opcode.META) { this._metaDispose?.() - this._metaDispose = this.ctx.satori.proxyUrls.add(...(parsed.body.proxyUrls || [])) + this._metaDispose = this.ctx.satori.proxyUrls.add(...parsed.body.proxyUrls ?? []) } if (parsed.op === Universal.Opcode.EVENT) {