Skip to content

Commit

Permalink
WIP: remove deprecated io/ioutil
Browse files Browse the repository at this point in the history
Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
  • Loading branch information
AkihiroSuda committed Mar 30, 2022
1 parent 19ab384 commit 18df8b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion manifest_test.go
Expand Up @@ -251,7 +251,7 @@ func generateTestFiles(t *testing.T, root string, resources []dresource) {
resources[i].size = size

// this relies on the proper directory parent being defined.
if err := ioutil.WriteFile(p, d, resource.mode); err != nil {
if err := os.WriteFile(p, d, resource.mode); err != nil {
t.Fatalf("error writing %q: %v", p, err)
}
case rdirectory:
Expand Down

0 comments on commit 18df8b4

Please sign in to comment.