Skip to content

Commit

Permalink
Simplify PYVLD_CACHE_TLD check
Browse files Browse the repository at this point in the history
  • Loading branch information
salty-horse committed Jul 19, 2024
1 parent 1fa4bb5 commit 4618dd6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/validators/domain.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def check(cls, tld: str):
if tld in cls._popular_cache:
return True
if cls._full_cache is None:
if environ.get("PYVLD_CACHE_TLD", "False") == "True":
if environ.get("PYVLD_CACHE_TLD") == "True":
cls._full_cache = set(cls._retrieve())
else:
return tld in cls._retrieve()
Expand Down

0 comments on commit 4618dd6

Please sign in to comment.