Skip to content
Snippets Groups Projects
Commit af5c24c6 authored by ale's avatar ale
Browse files

Typo

parent e4b8d993
Branches
No related tags found
No related merge requests found
Pipeline #61065 passed
......@@ -132,7 +132,7 @@ func (a *ACME) acmeClient(ctx context.Context) (*acme.Client, error) {
// Register the account (accept TOS) if necessary. If the
// account is already registered we get a StatusConflict,
// which we can ignore.
_, err := client.Register(ctx, ac, func(_ string) bool { return true })
_, err = client.Register(ctx, ac, func(_ string) bool { return true })
if ae, ok := err.(*acme.Error); err == nil || err == acme.ErrAccountAlreadyExists || (ok && ae.StatusCode == http.StatusConflict) {
a.client = client
err = nil
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment