Skip to content

Commit

Permalink
lint error messages
Browse files Browse the repository at this point in the history
Signed-off-by: Houssem Ben Mabrouk <[email protected]>
  • Loading branch information
orange-hbenmabrouk committed Oct 17, 2023
1 parent d901d42 commit 9c92333
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions connector/oidc/oidc.go
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ func randomBytesInHex(count int) (string, error) {
buf := make([]byte, count)
_, err := io.ReadFull(rand.Reader, buf)
if err != nil {
return "", fmt.Errorf("Could not generate %d random bytes: %v", count, err)
return "", fmt.Errorf("could not generate %d random bytes: %v", count, err)
}

return hex.EncodeToString(buf), nil
Expand Down Expand Up @@ -200,7 +200,7 @@ func (c *Config) Open(id string, logger log.Logger) (conn connector.Connector, e
sha2 := sha256.New()
if _, err = io.WriteString(sha2, codeVerifier); err != nil {
cancel()
return nil, fmt.Errorf("UNable to copy code_verifier to the hash: %v", err)
return nil, fmt.Errorf("unable to copy code_verifier to the hash: %v", err)
}
pkce.CodeChallenge = base64.RawURLEncoding.EncodeToString(sha2.Sum(nil))
pkce.CodeChallengeMethod = "S256"
Expand Down

0 comments on commit 9c92333

Please sign in to comment.