chore: use os.ReadFile instead of deprecated ioutil.ReadFile

Signed-off-by: Max Jonas Werner <mail@makk.es>
pull/1782/head
Max Jonas Werner 3 years ago
parent e98f1142a6
commit 2e6ca16a4a
No known key found for this signature in database
GPG Key ID: EB525E0F02B52140

@ -19,7 +19,6 @@ package main
import (
"context"
"fmt"
"io/ioutil"
"net/url"
"os"
"strings"
@ -203,7 +202,7 @@ func bootstrapGitCmdRun(cmd *cobra.Command, args []string) error {
var caBundle []byte
if bootstrapArgs.caFile != "" {
var err error
caBundle, err = ioutil.ReadFile(bootstrapArgs.caFile)
caBundle, err = os.ReadFile(bootstrapArgs.caFile)
if err != nil {
return fmt.Errorf("unable to read TLS CA file: %w", err)
}

Loading…
Cancel
Save