From 00cd0f5f2194bd4a1573fdf3d105f5bbfe7c2e1d Mon Sep 17 00:00:00 2001 From: Mariano Cano Date: Tue, 12 Apr 2022 14:44:55 -0700 Subject: [PATCH] Apply suggestions from code review Co-authored-by: Herman Slatman --- authority/authorize.go | 2 +- authority/provisioners.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/authority/authorize.go b/authority/authorize.go index 6162fc0e..7dc58575 100644 --- a/authority/authorize.go +++ b/authority/authorize.go @@ -287,7 +287,7 @@ func (a *Authority) authorizeRenew(cert *x509.Certificate) error { var ok bool // For backward compatibility this method will also succeed if the // provisioner does not have an extension. LoadByCertificate returns the - // noop provisioner if this happens, and it allow certificate renewals. + // noop provisioner if this happens, and it allows certificate renewals. if p, ok = a.provisioners.LoadByCertificate(cert); !ok { return errs.Unauthorized("authority.authorizeRenew: provisioner not found", opts...) } diff --git a/authority/provisioners.go b/authority/provisioners.go index 7ff080ed..c20c7b68 100644 --- a/authority/provisioners.go +++ b/authority/provisioners.go @@ -62,7 +62,7 @@ func (a *Authority) unsafeLoadProvisionerFromExtension(crt *x509.Certificate) (p } func (a *Authority) unsafeLoadProvisionerFromDatabase(crt *x509.Certificate) (provisioner.Interface, error) { - // certificateDataGetter is an interface that can be use to retrieve the + // certificateDataGetter is an interface that can be used to retrieve the // provisioner from a db or a linked ca. type certificateDataGetter interface { GetCertificateData(string) (*db.CertificateData, error)