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.
|
shares of posts, not shares of physical objects.
|
||||||
"""
|
"""
|
||||||
postJsonObject = loadJson(postFilename)
|
postJsonObject = loadJson(postFilename)
|
||||||
if postJsonObject:
|
if not postJsonObject:
|
||||||
|
return
|
||||||
# remove any cached version of this announce so that the announce
|
# remove any cached version of this announce so that the announce
|
||||||
# icon is changed
|
# icon is changed
|
||||||
nickname = getNicknameFromActor(actor)
|
nickname = getNicknameFromActor(actor)
|
||||||
|
@ -2014,7 +2015,8 @@ def undoAnnounceCollectionEntry(recentPostsCache: {},
|
||||||
postJsonObject['object']['shares']['items'].remove(anIt)
|
postJsonObject['object']['shares']['items'].remove(anIt)
|
||||||
itemFound = True
|
itemFound = True
|
||||||
break
|
break
|
||||||
if itemFound:
|
if not itemFound:
|
||||||
|
return
|
||||||
if totalItems == 1:
|
if totalItems == 1:
|
||||||
if debug:
|
if debug:
|
||||||
print('DEBUG: shares (announcements) ' +
|
print('DEBUG: shares (announcements) ' +
|
||||||
|
|
Loading…
Reference in New Issue