Skip to content

Commit

Permalink
chore: use os instead of io/ioutil
Browse files Browse the repository at this point in the history
  • Loading branch information
mozillazg committed Feb 23, 2024
1 parent 68e61f1 commit d18e9ca
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pkg/credentials/oidctoken/oidctoken.go
Expand Up @@ -3,7 +3,6 @@ package oidctoken
import (
"context"
"fmt"
"io/ioutil"
"math/rand"
"os"
"path/filepath"
Expand Down Expand Up @@ -128,7 +127,7 @@ func (p *RoleProvider) setCred(cred *Credential) {
}

func (p *RoleProvider) retrieve(ctx context.Context) (*Credential, error) {
token, err := ioutil.ReadFile(p.tokenFile)
token, err := os.ReadFile(p.tokenFile)
if err != nil {
return nil, err
}
Expand Down

0 comments on commit d18e9ca

Please sign in to comment.