Skip to content

Commit

Permalink
Use constant for the data prefix (#866)
Browse files Browse the repository at this point in the history
  • Loading branch information
Niennienzz committed Nov 16, 2022
1 parent 03aabd4 commit 39e11c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion oauth2/client_credentials_provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ func (k *KeyFileProvider) GetClientCredentials() (*KeyFile, error) {
case strings.HasPrefix(k.KeyFile, FILE):
filename := strings.TrimPrefix(k.KeyFile, FILE)
keyFile, err = ioutil.ReadFile(filename)
case strings.HasPrefix(k.KeyFile, "data://"):
case strings.HasPrefix(k.KeyFile, DATA):
keyFile = []byte(strings.TrimPrefix(k.KeyFile, DATA))
default:
keyFile, err = ioutil.ReadFile(k.KeyFile)
Expand Down

0 comments on commit 39e11c7

Please sign in to comment.