From ed4ae31c58184acc9957693451c6b8b7c95a16aa Mon Sep 17 00:00:00 2001 From: arriven <20084245+Arriven@users.noreply.github.com> Date: Sat, 24 Sep 2022 14:51:51 +0300 Subject: [PATCH] use io instead of ioutil (linter) --- src/utils/crypto.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/utils/crypto.go b/src/utils/crypto.go index 7cdca53d..e8f91cfd 100644 --- a/src/utils/crypto.go +++ b/src/utils/crypto.go @@ -2,7 +2,7 @@ package utils import ( "bytes" - "io/ioutil" + "io" "runtime" "strings" "sync" @@ -95,5 +95,5 @@ func decrypt(cfg []byte, key string) ([]byte, error) { return nil, err } - return ioutil.ReadAll(decryptedReader) + return io.ReadAll(decryptedReader) }