-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
See discussion here: https://github.com/anaconda/anaconda-linter/pull/369/files#diff-33b60c1e875849a20005276fa884473abaace7572cbca8faa64376e2493f9f24
Refactor for short-circuit evaluation.
def _verify_url(url: str) -> None:
if url:
response_data = utils.check_url(url)
if response_data["code"] < 0 or response_data["code"] >= 400:
if "domain_redirect" not in response_data:
self.message(url, response_data["message"], section=section)
Metadata
Metadata
Assignees
Labels
No labels