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 (
"context"
"io/ioutil"
"net/http"
"os"
@@ -57,7 +56,7 @@ func (s *MmctlUnitTestSuite) TestRemoveLicenseCmd() {
func (s *MmctlUnitTestSuite) TestUploadLicenseCmdF() {
// create temporary file
tmpFile, err := ioutil.TempFile(os.TempDir(), "testLicense-")
tmpFile, err := os.CreateTemp(os.TempDir(), "testLicense-")
if err != nil {
panic(err)
}