Skip to content

Commit

Permalink
fix: migrate deprecated io/ioutil.ReadFile to os.ReadFile (#714)
Browse files Browse the repository at this point in the history
  • Loading branch information
steveruckdashel authored Feb 21, 2025
1 parent add254f commit eb98343
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/client/key.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package client

import (
"encoding/json"
"io/ioutil"
"os"
)

const (
Expand All @@ -24,7 +24,7 @@ type KeyFile struct {
}

func ConfigFromKeyFile(path string) (*KeyFile, error) {
data, err := ioutil.ReadFile(path)
data, err := os.ReadFile(path)
if err != nil {
return nil, err
}
Expand Down

0 comments on commit eb98343

Please sign in to comment.