acme: rm unnecessary bytes check

This commit is contained in:
Will Greenberg
2026-05-14 13:37:36 -07:00
parent ba9dc2a2e2
commit 002a8f30d5
+2 -4
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("*.")