Skip to content

Commit

Permalink
Mypy pass for the get_domain function
Browse files Browse the repository at this point in the history
  • Loading branch information
aarontovars committed Nov 12, 2023
1 parent 3263af6 commit 8db6f39
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dispatch/target_types/xnat.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,12 @@
logger = config.get_logger()


def get_domain(url):
def get_domain(url: str) -> str:
parsed_url = urlparse(url)
if parsed_url.scheme and parsed_url.netloc:
return parsed_url.netloc
else:
return None
return ""


@handler_for(XnatTarget)
Expand Down

0 comments on commit 8db6f39

Please sign in to comment.