From 6c3943900831699406a9645902e613525ee81b6d Mon Sep 17 00:00:00 2001 From: David Cowden Date: Wed, 20 May 2020 20:41:07 -0700 Subject: [PATCH] acme: make fmt --- acme/api/handler_test.go | 2 +- acme/authority.go | 6 +++--- ca/ca.go | 1 - commands/app.go | 2 +- 4 files changed, 5 insertions(+), 6 deletions(-) diff --git a/acme/api/handler_test.go b/acme/api/handler_test.go index 8cbed7af..3bf73a0e 100644 --- a/acme/api/handler_test.go +++ b/acme/api/handler_test.go @@ -813,7 +813,7 @@ func TestHandlerGetChallenge(t *testing.T) { assert.Equals(t, res.Header["Cache-Control"], []string{"no-cache"}) assert.Equals(t, res.Header["Retry-After"], []string{tc.ch.RetryAfter}) case "valid", "invalid": - // + // } } else { assert.Fatal(t, false, "Unexpected Status Code") diff --git a/acme/authority.go b/acme/authority.go index 8677274e..6ebff9e1 100644 --- a/acme/authority.go +++ b/acme/authority.go @@ -272,7 +272,7 @@ func (a *Authority) GetAuthz(ctx context.Context, accID, authzID string) (*Authz } // ValidateChallenge loads a challenge resource and then begins the validation process if the challenge -// is not in one of its terminal states {valid|invalid}. +// is not in one of its terminal states {valid|invalid}. // // The challenge validation state machine looks like: // @@ -322,7 +322,7 @@ func (a *Authority) ValidateChallenge(ctx context.Context, accID, chID string, j case StatusInvalid, StatusValid: return ch.toACME(ctx, a.dir) default: - e:= errors.Errorf("unknown challenge state: %s", ch.getStatus()) + e := errors.Errorf("unknown challenge state: %s", ch.getStatus()) return nil, ServerInternalErr(e) } @@ -419,7 +419,7 @@ func (a *Authority) RetryChallenge(chID string) { case StatusProcessing: break default: - e:= errors.Errorf("unknown challenge state: %s", ch.getStatus()) + e := errors.Errorf("unknown challenge state: %s", ch.getStatus()) log.Printf("%v", e) return } diff --git a/ca/ca.go b/ca/ca.go index 18b43d92..469c2a25 100644 --- a/ca/ca.go +++ b/ca/ca.go @@ -61,7 +61,6 @@ func WithDatabase(db db.AuthDB) Option { } } - // WithOrdinal sets the server's ordinal identifier (an int). func WithOrdinal(ordinal int) Option { return func(o *options) { diff --git a/commands/app.go b/commands/app.go index 19b09a47..9ab367bf 100644 --- a/commands/app.go +++ b/commands/app.go @@ -35,7 +35,7 @@ intermediate private key.`, Usage: "address of a DNS resolver to be used instead of the default.", }, cli.IntFlag{ - Name: "ordinal", + Name: "ordinal", Usage: `Unique identifying this instance of step-ca in a highly- available (replicated) deployment.`, },