mirror of https://github.com/scrapy/scrapy.git
rel_has_nofollow: remove redundant if statement
This commit is contained in:
parent
b364bfb68b
commit
b02d26fae8
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Reference in New Issue