Skip to content

Commit

Permalink
Updating ioutil to os
Browse files Browse the repository at this point in the history
Updates ioutil to os.
  • Loading branch information
mys721tx committed Feb 9, 2024
1 parent 366bbd6 commit af581a4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cdh.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ import (
"encoding/pem"
"flag"
"fmt"
"io/ioutil"
"log"
"os"
"path/filepath"
"strings"

Expand Down Expand Up @@ -93,7 +93,7 @@ var (
func readCert(f string) (*tlsa, error) {
t := NewTLSA()

data, err := ioutil.ReadFile(filepath.Join(filepath.Clean(f), "fullchain.pem"))
data, err := os.ReadFile(filepath.Join(filepath.Clean(f), "fullchain.pem"))
if err != nil {
return nil, err
}
Expand All @@ -118,7 +118,7 @@ func newDNSClient(f string) (*gcdns.Service, string, error) {
var projectID string
var err error

data, err := ioutil.ReadFile(filepath.Clean(f))
data, err := os.ReadFile(filepath.Clean(f))
if err != nil {
return nil, projectID, err
}
Expand Down

0 comments on commit af581a4

Please sign in to comment.