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 удалений

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

@@ -4,7 +4,6 @@
package commands
import (
"io/ioutil"
"os"
"github.com/mattermost/mattermost/server/v8/cmd/mmctl/printer"
@@ -49,7 +48,7 @@ func (s *MmctlUnitTestSuite) TestSampledataCmd() {
s.Run("should not fail with less than 6 users and no group channels", func() {
printer.Clean()
tmpFile, err := ioutil.TempFile("", "mmctl-sampledata-test-")
tmpFile, err := os.CreateTemp("", "mmctl-sampledata-test-")
s.Require().NoError(err)
tmpFile.Close()
defer os.Remove(tmpFile.Name())