From bf6d55c69ffd77968e064a58dee116c2cce26863 Mon Sep 17 00:00:00 2001 From: Jessica Smith <12jessicasmith34@gmail.com> Date: Tue, 7 Jan 2025 16:01:40 -0600 Subject: [PATCH] check falsey, not None --- src/otf_api/auth/auth.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/otf_api/auth/auth.py b/src/otf_api/auth/auth.py index 11f29b0..b776d96 100644 --- a/src/otf_api/auth/auth.py +++ b/src/otf_api/auth/auth.py @@ -41,7 +41,7 @@ def has_cached_credentials(config: OtfAuthConfig | None = None) -> bool: bool: True if there are cached credentials, False otherwise. """ config = config or OtfAuthConfig() - return config.token_cache.get_cached_data() is not None + return bool(config.token_cache.get_cached_data()) @staticmethod def from_cache(config: OtfAuthConfig | None = None) -> "OtfTokenAuth":