Skip to content

Commit

Permalink
Use IfExists form
Browse files Browse the repository at this point in the history
  • Loading branch information
tstirrat15 committed Sep 19, 2024
1 parent 6953f57 commit 3f13864
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 3f13864

Please sign in to comment.