Skip to content

Commit 19ad124

Browse files
authored
Merge pull request #88 from flanksource/moshloop
chore: fix build
2 parents a0ead0d + b61f433 commit 19ad124

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

client.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ import (
66
"container/list"
77
"context"
88
"fmt"
9-
"io"
109
"net"
1110
"net/http"
1211

@@ -141,7 +140,7 @@ func (c *Client) GetKustomize() (*kustomize.Manager, error) {
141140
for _, patch := range patches {
142141
if files.Exists(patch) {
143142
name = fmt.Sprintf("%d-%s", no, filepath.Base(patch))
144-
patchBytes, err := io.ReadFile(patch)
143+
patchBytes, err := os.ReadFile(patch)
145144
if err != nil {
146145
return nil, err
147146
}

kustomize/kustomize_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ func handleError(err error, t *testing.T) {
9292
}
9393

9494
func getFileBuffer(filePath string) ([]byte, error) {
95-
buf, err := io.ReadFile(filePath)
95+
buf, err := os.ReadFile(filePath)
9696
if err != nil {
9797
logger.Errorf("error reading file %v: %v", filePath, err)
9898
return nil, err

0 commit comments

Comments
 (0)