Less indentation

main
Bob Mottram 2020-06-28 12:09:38 +01:00
parent 67c6c16ef4
commit 01338dd85d
1 changed files with 49 additions and 48 deletions

View File

@ -898,7 +898,8 @@ def updateLikesCollection(recentPostsCache: {},
"""Updates the likes collection within a post
"""
postJsonObject = loadJson(postFilename)
if postJsonObject:
if not postJsonObject:
return
# remove any cached version of this post so that the
# like icon is changed
nickname = getNicknameFromActor(actor)