acme: rm unnecessary bytes check

This commit is contained in:
Will Greenberg 2026-05-11 13:05:34 -07:00
parent ba9dc2a2e2
commit 002a8f30d5

View file

@ -13,12 +13,10 @@ def is_wildcard_domain(domain: str) -> bool:
""""Is domain a wildcard domain?
:param domain: domain to check
:type domain: `bytes` or `str`
:type domain: `str`
:returns: True if domain is a wildcard, otherwise, False
:rtype: bool
"""
if isinstance(domain, str):
return domain.startswith("*.")
return domain.startswith(b"*.")
return domain.startswith("*.")