From 6100b3752534b6d327e7f055f582b01f5c613bea Mon Sep 17 00:00:00 2001 From: syuilo Date: Sun, 29 Mar 2020 10:39:36 +0900 Subject: [PATCH] Refactor: Use === --- src/server/api/stream/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/server/api/stream/index.ts b/src/server/api/stream/index.ts index 05594ac72..9a6c24746 100644 --- a/src/server/api/stream/index.ts +++ b/src/server/api/stream/index.ts @@ -117,7 +117,7 @@ export default class Connection { this.subscribingNotes[payload.id]++; - if (this.subscribingNotes[payload.id] == 1) { + if (this.subscribingNotes[payload.id] === 1) { this.subscriber.on(`noteStream:${payload.id}`, this.onNoteStreamMessage); }