do not use ioutil (#9206)

This commit is contained in:
Jacob Gadikian
2022-08-10 14:35:14 -04:00
committed by GitHub
parent 152a2fa5c9
commit a6dde14ec4
59 changed files with 165 additions and 200 deletions
+2 -2
View File
@@ -3,7 +3,7 @@ package armor
import (
"bytes"
"fmt"
"io/ioutil"
"io"
"golang.org/x/crypto/openpgp/armor" // nolint: staticcheck
)
@@ -31,7 +31,7 @@ func DecodeArmor(armorStr string) (blockType string, headers map[string]string,
if err != nil {
return "", nil, nil, err
}
data, err = ioutil.ReadAll(block.Body)
data, err = io.ReadAll(block.Body)
if err != nil {
return "", nil, nil, err
}