Cleanup: remove ioutil for new go version (#1532)

This commit is contained in:
my-git9 2023-02-06 17:43:35 +08:00 committed by GitHub
parent 958429c2f3
commit 705cbcd8ac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

View File

@ -5,7 +5,6 @@ package e2e
import (
"fmt"
"io/ioutil"
"log"
"os"
"path/filepath"
@ -70,7 +69,7 @@ func createConfigAuth(dockerConfigFile string, content string) error {
func updateConfigAuth(dockerConfigFile string) error {
bcontent, err := ioutil.ReadFile(dockerConfigFile)
bcontent, err := os.ReadFile(dockerConfigFile)
if err != nil {
return err
}