Skip to content

Commit

Permalink
o365: Remove problematic debug code in office365.py
Browse files Browse the repository at this point in the history
The assertion that the local message has not been linked to other places
is overly cautions.

Suggested-by: us91 <[email protected]>
Signed-off-by: Jason Gunthorpe <[email protected]>
  • Loading branch information
jgunthorpe committed Jan 28, 2022
1 parent 2c6d23d commit a493601
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions cloud_mdir_sync/office365.py
Original file line number Diff line number Diff line change
Expand Up @@ -799,11 +799,6 @@ async def merge_content(self, msgs: messages.CHMsgMappingDict_Type):
if cmsg is not None and old_cmsg is not None and lmsg is not None:
self._update_msg_flags(todo_flags, cmsg, old_cmsg.flags, lmsg)

# Debugging that the message really is to be deleted
if cmsg is not None and lmsg is None:
assert os.stat(os.path.join(self.msgdb.hashes_dir,
ch)).st_nlink == 1

if cmsg is not None and (lmsg is None or lmsg.flags
& messages.Message.FLAG_DELETED):
# Delete cloud message
Expand Down

0 comments on commit a493601

Please sign in to comment.