chore: remove deprecated "io/ioutil" imports (#25119)

Co-authored-by: Ben Schumacher <ben.schumacher@mattermost.com>
Этот коммит содержится в:
Aldrin
2023-11-16 16:45:30 +05:30
коммит произвёл GitHub
родитель afb48219c0
Коммит 2ff946e79b
17 изменённых файлов: 54 добавлений и 64 удалений

Просмотреть файл

@@ -5,7 +5,6 @@ package commands
import (
"fmt"
"io/ioutil"
"os"
"path/filepath"
"time"
@@ -264,9 +263,9 @@ func (s *MmctlE2ETestSuite) TestExportDownloadCmdF() {
s.Require().Empty(printer.GetLines())
s.Require().Empty(printer.GetErrorLines())
expected, err := ioutil.ReadFile(exportFilePath)
expected, err := os.ReadFile(exportFilePath)
s.Require().Nil(err)
actual, err := ioutil.ReadFile(downloadPath)
actual, err := os.ReadFile(downloadPath)
s.Require().Nil(err)
s.Require().Equal(expected, actual)