From 5b574e4100e0abca73be2b639f49a0384e3b493e Mon Sep 17 00:00:00 2001 From: michael Date: Wed, 4 Sep 2024 09:44:57 +0800 Subject: [PATCH] fix lint --- packages/jupyter-ai/src/chat_handler.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/jupyter-ai/src/chat_handler.ts b/packages/jupyter-ai/src/chat_handler.ts index c21b442ce..2ff8b108c 100644 --- a/packages/jupyter-ai/src/chat_handler.ts +++ b/packages/jupyter-ai/src/chat_handler.ts @@ -135,11 +135,11 @@ export class ChatHandler implements IDisposable { if (newMessage.target) { this._messages = this._messages.filter( msg => - msg.id != newMessage.target && - !('reply_to' in msg && msg.reply_to == newMessage.target) + msg.id !== newMessage.target && + !('reply_to' in msg && msg.reply_to === newMessage.target) ); this._pendingMessages = this._pendingMessages.filter( - msg => msg.reply_to != newMessage.target + msg => msg.reply_to !== newMessage.target ); } else { this._messages = [];