Skip to content

Commit

Permalink
refactor: reuse provider property in OpenFeatureClient
Browse files Browse the repository at this point in the history
Signed-off-by: Federico Bond <[email protected]>
  • Loading branch information
federicobond committed Mar 10, 2024
1 parent 4c6e3e5 commit 8e2658e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions openfeature/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 8e2658e

Please sign in to comment.