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

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

@@ -7,8 +7,8 @@ import (
"context"
"encoding/json"
"fmt"
"io/ioutil"
"net/http"
"os"
"github.com/mattermost/mattermost/server/public/model"
@@ -914,7 +914,7 @@ func migrateAuthToSamlCmdF(c client.Client, cmd *cobra.Command, userArgs []strin
if !auto {
matchesFile := userArgs[2]
file, err := ioutil.ReadFile(matchesFile)
file, err := os.ReadFile(matchesFile)
if err != nil {
return fmt.Errorf("could not read file: %w", err)
}