Redundant logic

merge-requests/21/head
Bob Mottram 2021-02-24 09:56:08 +00:00
parent 764f6673c0
commit 99035b1b7b
1 changed files with 0 additions and 6 deletions

View File

@ -138,12 +138,6 @@ def isFollowingActor(baseDir: str,
return False
if actor.lower() in open(followingFile).read().lower():
return True
if '@' in actor and '://' not in actor:
# the actor is a handle: nickname@domain
followingHandle = actor.lower()
if followingHandle in open(followingFile).read().lower():
return True
return False
followingNickname = getNicknameFromActor(actor)
if not followingNickname:
print('WARN: unable to find nickname in ' + actor)