Skip to content

Commit

Permalink
Remove deprecated ioutil.ReadFile
Browse files Browse the repository at this point in the history
  • Loading branch information
banjoh committed Sep 19, 2023
1 parent d72c667 commit 2f05a48
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pkg/kotsutil/troubleshoot.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package kotsutil

import (
"context"
"io/ioutil"
"os"
"path/filepath"

Expand All @@ -22,7 +21,7 @@ func LoadTSKindsFromPath(dir string) (*troubleshootloader.TroubleshootKinds, err
return nil
}

contents, err := ioutil.ReadFile(path)
contents, err := os.ReadFile(path)
if err != nil {
return errors.Wrap(err, "failed to read file")
}
Expand Down

0 comments on commit 2f05a48

Please sign in to comment.