From 8b2d0464ad4036ae51e7bf295d15e6d2e26f8ceb Mon Sep 17 00:00:00 2001 From: Patrick Motsch <141018425+patrick-motsch@users.noreply.github.com> Date: Sun, 11 Jan 2026 14:12:47 +0100 Subject: [PATCH] Update interfaceDbChatObjects.py line 1247 removed a "return true" unreachable code --- modules/interfaces/interfaceDbChatObjects.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/modules/interfaces/interfaceDbChatObjects.py b/modules/interfaces/interfaceDbChatObjects.py index 40e30eaa..a3b9bc06 100644 --- a/modules/interfaces/interfaceDbChatObjects.py +++ b/modules/interfaces/interfaceDbChatObjects.py @@ -1245,8 +1245,6 @@ class ChatObjects: if not removed: logger.warning(f"No matching file {fileId} found in message {messageId}") return False - - return True except Exception as e: logger.error(f"Error removing file {fileId} from message {messageId}: {str(e)}") @@ -1864,4 +1862,4 @@ def getInterface(currentUser: Optional[User] = None) -> 'ChatObjects': if contextKey not in _chatInterfaces: _chatInterfaces[contextKey] = ChatObjects(currentUser) - return _chatInterfaces[contextKey] \ No newline at end of file + return _chatInterfaces[contextKey]