From 8e2658ee8f40c555e732340069bc9a57ae8d8ed5 Mon Sep 17 00:00:00 2001 From: Federico Bond Date: Mon, 11 Mar 2024 10:36:30 +1100 Subject: [PATCH] refactor: reuse provider property in OpenFeatureClient Signed-off-by: Federico Bond --- openfeature/client.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/openfeature/client.py b/openfeature/client.py index 90d219eb..384f37b5 100644 --- a/openfeature/client.py +++ b/openfeature/client.py @@ -85,8 +85,7 @@ def provider(self) -> FeatureProvider: return api._provider_registry.get_provider(self.domain) def get_provider_status(self) -> ProviderStatus: - provider = api._provider_registry.get_provider(self.domain) - return api._provider_registry.get_provider_status(provider) + return api._provider_registry.get_provider_status(self.provider) def get_metadata(self) -> ClientMetadata: return ClientMetadata(domain=self.domain)