rel_has_nofollow: remove redundant if statement

This commit is contained in:
John de la Garza 2019-02-15 16:54:19 -08:00
parent b364bfb68b
commit b02d26fae8
1 changed files with 1 additions and 1 deletions

View File

@ -116,7 +116,7 @@ def md5sum(file):
def rel_has_nofollow(rel):
"""Return True if link rel attribute has nofollow type"""
return True if rel is not None and 'nofollow' in rel.split() else False
return rel is not None and 'nofollow' in rel.split()
def create_instance(objcls, settings, crawler, *args, **kwargs):