LINT : Found in waybackpy\wrapper.py:88 Unnecessary else after return

This commit is contained in:
Akash Mahanty 2020-12-13 15:39:23 +05:30
parent c919a6a605
commit f89368f16d

View File

@ -87,9 +87,9 @@ class Url:
)
if self.timestamp == datetime.max:
return td_max.days
else:
diff = datetime.utcnow() - self.timestamp
return diff.days
diff = datetime.utcnow() - self.timestamp
return diff.days
def _url_check(self):
"""Check for common URL problems."""