From e92dfb25163ae47b50da8c012f1223be94f5aead Mon Sep 17 00:00:00 2001 From: max furman Date: Mon, 30 Sep 2019 11:49:15 -0700 Subject: [PATCH] Fix authz shadow declarations --- acme/order.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/acme/order.go b/acme/order.go index ab4ac659..5133ca1b 100644 --- a/acme/order.go +++ b/acme/order.go @@ -73,11 +73,11 @@ func newOrder(db nosql.DB, ops OrderOptions) (*order, error) { authzs := make([]string, len(ops.Identifiers)) for i, identifier := range ops.Identifiers { - authz, err := newAuthz(db, ops.AccountID, identifier) + az, err := newAuthz(db, ops.AccountID, identifier) if err != nil { return nil, err } - authzs[i] = authz.getID() + authzs[i] = az.getID() } now := clock.Now() @@ -203,14 +203,14 @@ func (o *order) updateStatus(db nosql.DB) (*order, error) { StatusPending: 0, } for _, azID := range o.Authorizations { - authz, err := getAuthz(db, azID) + az, err := getAuthz(db, azID) if err != nil { return nil, err } - if authz, err = authz.updateStatus(db); err != nil { + if az, err = az.updateStatus(db); err != nil { return nil, err } - st := authz.getStatus() + st := az.getStatus() count[st]++ } switch {