Update interfaceDbChatObjects.py

line 1247 removed a "return true" unreachable code
This commit is contained in:
Patrick Motsch 2026-01-11 14:12:47 +01:00 committed by GitHub
parent 1aa71c1f1e
commit 8b2d0464ad
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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]
return _chatInterfaces[contextKey]