Skip to content

Commit

Permalink
chore(lint): Conform to Go 1.22
Browse files Browse the repository at this point in the history
Signed-off-by: Hayden Roszell <[email protected]>
  • Loading branch information
m8rmclaren committed Jul 17, 2024
1 parent c66142a commit fc6ed3a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
4 changes: 2 additions & 2 deletions backend.go
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ func (sc *storageContext) getClient() (*ejbcaClient, error) {
}

logger.Trace("Creating new EJBCA authenticator")
authenticator, err := sc.Backend.newAuthenticator(sc.Context, config)
authenticator, err := sc.Backend.newAuthenticator(config)
if err != nil {
return nil, err
}
Expand All @@ -165,7 +165,7 @@ func (sc *storageContext) getClient() (*ejbcaClient, error) {
return sc.Backend.client, nil
}

func (b *ejbcaBackend) newAuthenticator(ctx context.Context, config *ejbcaConfig) (ejbca.Authenticator, error) {
func (b *ejbcaBackend) newAuthenticator(config *ejbcaConfig) (ejbca.Authenticator, error) {
var err error
logger := b.Logger().Named("ejbcaBackend.newAuthenticator")

Expand Down
3 changes: 0 additions & 3 deletions client.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ limitations under the License.
package ejbca

import (
"context"
"encoding/json"
"encoding/pem"
"errors"
Expand All @@ -34,8 +33,6 @@ type ejbcaClient struct {
*ejbca.APIClient
}

type newEjbcaAuthenticatorFunc func(context.Context) (ejbca.Authenticator, error)

// ejbcaAPIError is an intermediate interface that allows the EJBCA Vault PKI Engine to return
// the EJBCA API error code as the Vault API error code.
type ejbcaAPIError struct {
Expand Down

0 comments on commit fc6ed3a

Please sign in to comment.