all: replace deprecated ioutil

Change-Id: I1beb9f5e759127a48c4e5ea0613a5a466886b7c5
GitHub-Last-Rev: 58038b6cdd6f289eb1e35e44a7c60ad150be3a6f
GitHub-Pull-Request: golang/sync#28
Reviewed-on: https://go-review.googlesource.com/c/sync/+/674815
Reviewed-by: Alan Donovan <adonovan@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Sean Liao <sean@liao.dev>
Auto-Submit: Alan Donovan <adonovan@google.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
This commit is contained in:
Iliya Lyan 2025-05-20 23:05:19 +00:00 committed by Gopher Robot
commit 1869c690bf

View file

@ -8,7 +8,6 @@ import (
"context"
"crypto/md5"
"fmt"
"io/ioutil"
"log"
"os"
"path/filepath"
@ -69,7 +68,7 @@ func MD5All(ctx context.Context, root string) (map[string][md5.Size]byte, error)
for i := 0; i < numDigesters; i++ {
g.Go(func() error {
for path := range paths {
data, err := ioutil.ReadFile(path)
data, err := os.ReadFile(path)
if err != nil {
return err
}