Skip to content

Commit

Permalink
[pkg/reconciler] clean up io/ioutil package
Browse files Browse the repository at this point in the history
[pkg/reconciler] Clean up io/ioutil package for new go version
Signed-off-by: xin.li <xin.li@daocloud.io>
  • Loading branch information
my-git9 authored and tekton-robot committed Feb 15, 2023
1 parent 123c25b commit 0957160
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/reconciler/testing/configmap.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ package testing
import (
"context"
"fmt"
"io/ioutil"
"os"
"testing"

"github.com/tektoncd/pipeline/pkg/apis/config"
Expand All @@ -32,7 +32,7 @@ import (
func ConfigMapFromTestFile(t *testing.T, name string) *corev1.ConfigMap {
t.Helper()

b, err := ioutil.ReadFile(fmt.Sprintf("testdata/%s.yaml", name))
b, err := os.ReadFile(fmt.Sprintf("testdata/%s.yaml", name))
if err != nil {
t.Fatalf("ReadFile() = %v", err)
}
Expand Down

0 comments on commit 0957160

Please sign in to comment.