Skip to content

Commit

Permalink
fix(lint): Conform code to linter
Browse files Browse the repository at this point in the history
Signed-off-by: Hayden Roszell <hroszell@gmail.com>
  • Loading branch information
m8rmclaren committed Aug 20, 2024
1 parent 7e928f0 commit ed3b093
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion internal/ejbca/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -183,5 +183,5 @@ func (s *signer) parseEjbcaError(ctx context.Context, detail string, err error)

logger.Error(err, "EJBCA returned an error")

return fmt.Errorf(errString)
return errors.New(errString)
}
4 changes: 2 additions & 2 deletions internal/est/est.go
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ func (e *client) CaCerts(alias string) ([]*x509.Certificate, error) {
if len(content) > 0 {
errMsg = fmt.Sprintf("unexpected content-type: %s", content[0])
}
return nil, fmt.Errorf(errMsg)
return nil, errors.New(errMsg)
}

// Ensure that the response is base64 encoded
Expand All @@ -203,7 +203,7 @@ func (e *client) CaCerts(alias string) ([]*x509.Certificate, error) {
if len(encoding) > 0 {
errMsg = fmt.Sprintf("unexpected content-transfer-encoding: %s", encoding[0])
}
return nil, fmt.Errorf(errMsg)
return nil, errors.New(errMsg)
}

e.logger.Info("Validated HTTP response headers")
Expand Down

0 comments on commit ed3b093

Please sign in to comment.