Replaced ioutil calls
This commit is contained in:
@ -5,7 +5,6 @@ import (
|
||||
"errors"
|
||||
"fmt"
|
||||
"io"
|
||||
"io/ioutil"
|
||||
"os"
|
||||
"os/exec"
|
||||
|
||||
@ -58,7 +57,7 @@ func (amv *AMV) TitleByUser(user *User) string {
|
||||
func (amv *AMV) SetVideoReader(reader io.Reader) error {
|
||||
fileName := amv.ID + ".webm"
|
||||
pattern := amv.ID + ".*.webm"
|
||||
file, err := ioutil.TempFile("", pattern)
|
||||
file, err := os.CreateTemp("", pattern)
|
||||
|
||||
if err != nil {
|
||||
return err
|
||||
|
Reference in New Issue
Block a user