internal/modsdir: deprecate io/ioutil (#353)

Signed-off-by: jay-dee7 <me@jsdp.dev>
This commit is contained in:
Jasdeep Singh 2023-09-08 15:31:07 +05:30 committed by GitHub
parent e5a617e450
commit 902c1c00dc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -7,7 +7,6 @@ import (
"encoding/json"
"fmt"
"io"
"io/ioutil"
"log"
"os"
"path/filepath"
@ -71,7 +70,7 @@ type manifestSnapshotFile struct {
}
func ReadManifestSnapshot(r io.Reader) (Manifest, error) {
src, err := ioutil.ReadAll(r)
src, err := io.ReadAll(r)
if err != nil {
return nil, err
}