Skip to content

Commit 4b589b3

Browse files
committed
internal/kokoro/discogen/main: replace deprecated ioutil
1 parent b32ced9 commit 4b589b3

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

internal/kokoro/discogen/main.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ import (
88
"context"
99
"flag"
1010
"fmt"
11-
"io/ioutil"
1211
"log"
1312
"os"
1413
"os/exec"
@@ -87,7 +86,7 @@ func setGitCreds(githubName, githubEmail, githubUsername, accessToken string) er
8786
return err
8887
}
8988
gitCredentials := []byte(fmt.Sprintf("https://%s:%s@github.com", githubUsername, accessToken))
90-
if err := ioutil.WriteFile(path.Join(u.HomeDir, ".git-credentials"), gitCredentials, 0644); err != nil {
89+
if err := os.WriteFile(path.Join(u.HomeDir, ".git-credentials"), gitCredentials, 0644); err != nil {
9190
return err
9291
}
9392
c := exec.Command("git", "config", "--global", "user.name", githubName)

0 commit comments

Comments
 (0)