From 3f13864399b3203563d67d1b9098f7ce549384a0 Mon Sep 17 00:00:00 2001 From: Tanner Stirrat Date: Thu, 19 Sep 2024 15:12:38 -0600 Subject: [PATCH] Use IfExists form --- internal/client/client.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/client/client.go b/internal/client/client.go index b236267..e3d3330 100644 --- a/internal/client/client.go +++ b/internal/client/client.go @@ -54,7 +54,7 @@ func newClientForCurrentContext(cmd *cobra.Command) (Client, error) { } func newClientForContext(cmd *cobra.Command, contextName string, secretStore storage.SecretStore) (*authzed.Client, error) { - currentToken, err := storage.GetToken(contextName, secretStore) + currentToken, err := storage.GetTokenIfExists(contextName, secretStore) if err != nil { return nil, err }