mirror of https://gitlab.com/bashrc2/epicyon
Less indentation
parent
cd14cc2775
commit
e8d45565b4
6
utils.py
6
utils.py
|
@ -1977,7 +1977,8 @@ def undoAnnounceCollectionEntry(recentPostsCache: {},
|
|||
shares of posts, not shares of physical objects.
|
||||
"""
|
||||
postJsonObject = loadJson(postFilename)
|
||||
if postJsonObject:
|
||||
if not postJsonObject:
|
||||
return
|
||||
# remove any cached version of this announce so that the announce
|
||||
# icon is changed
|
||||
nickname = getNicknameFromActor(actor)
|
||||
|
@ -2014,7 +2015,8 @@ def undoAnnounceCollectionEntry(recentPostsCache: {},
|
|||
postJsonObject['object']['shares']['items'].remove(anIt)
|
||||
itemFound = True
|
||||
break
|
||||
if itemFound:
|
||||
if not itemFound:
|
||||
return
|
||||
if totalItems == 1:
|
||||
if debug:
|
||||
print('DEBUG: shares (announcements) ' +
|
||||
|
|
Loading…
Reference in New Issue