Skip to content

Commit

Permalink
Merge pull request #38 from OpenCHAMI/fix-error-returned
Browse files Browse the repository at this point in the history
Fixed incorrect error returned from fetchPublicKey()
  • Loading branch information
davidallendj authored Jul 17, 2024
2 parents a0e1caa + b725fff commit 6751b79
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmd/boot-script-service/oauth.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,8 @@ func fetchPublicKey(url string) error {
return fmt.Errorf("failed to initialize JWKS: %v", err)
}

return fmt.Errorf("failed to load public key: %v", err)
// no errors occurred up to this point, so everything is fine here
return nil
}

func (client *OAuthClient) CreateOAuthClient(registerUrl string) ([]byte, error) {
Expand Down

0 comments on commit 6751b79

Please sign in to comment.