Skip to content

Commit

Permalink
Fix style
Browse files Browse the repository at this point in the history
  • Loading branch information
iMicknl committed Nov 7, 2021
1 parent dc69321 commit 70acd61
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions pyhoma/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,8 @@ def obfuscate_email(email: str | None) -> str:
return re.sub(r"(.).*@.*(.\..*)", r"\1****@****\2", str(email))


def mask(input: str | None) -> str:
if input:
return re.sub(r"[a-zA-Z0-9_.-]*", "*", str(input))
return None
def mask(input: str) -> str:
return re.sub(r"[a-zA-Z0-9_.-]*", "*", str(input))


@attr.s(auto_attribs=True, init=False, slots=True, kw_only=True)
Expand Down

0 comments on commit 70acd61

Please sign in to comment.