From 4eb64a3716adb8cccbcb970f86ffe3172680f6bf Mon Sep 17 00:00:00 2001 From: Corneliu Zuzu Date: Thu, 9 May 2024 14:37:40 +0300 Subject: [PATCH] Remove redundant check from js_chat_html_update --- modules/ui_chat.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/ui_chat.py b/modules/ui_chat.py index 775ed9a8..1aa1fbb2 100644 --- a/modules/ui_chat.py +++ b/modules/ui_chat.py @@ -17,7 +17,7 @@ clear_arr = ('delete_chat-confirm', 'delete_chat', 'delete_chat-cancel') js_chat_html_update = """ (newHTML) => { function areNodesEqualOrTagsMatch(n1, n2) { - if (!n1 || !n2 || n1.nodeType !== n2.nodeType) + if (n1.nodeType !== n2.nodeType) return false; if (n1.nodeType !== Node.ELEMENT_NODE) return n1.isEqualNode(n2);