Update interfaceDbChatObjects.py
line 1247 removed a "return true" unreachable code
This commit is contained in:
parent
1aa71c1f1e
commit
8b2d0464ad
1 changed files with 1 additions and 3 deletions
|
|
@ -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]
|
||||
|
|
|
|||
Loading…
Reference in a new issue