Skip to content

Commit

Permalink
replace ioutil.ReadAll with io.ReadAll
Browse files Browse the repository at this point in the history
  • Loading branch information
qmuntal committed Jun 27, 2024
1 parent e2647a7 commit 1c0eee1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions modeler/write.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import (
"fmt"
"image/color"
"io"
"io/ioutil"
"math"
"reflect"

Expand Down Expand Up @@ -157,7 +156,7 @@ func WriteImage(doc *gltf.Document, name string, mimeType string, r io.Reader) (
data = r.Bytes()
default:
var err error
data, err = ioutil.ReadAll(r)
data, err = io.ReadAll(r)
if err != nil {
return 0, err
}
Expand Down

0 comments on commit 1c0eee1

Please sign in to comment.