diff --git a/go.mod b/go.mod index 25a7f37..69bf147 100644 --- a/go.mod +++ b/go.mod @@ -1,5 +1,3 @@ module github.com/gotracker/goaudiofile -go 1.18 - -require github.com/pkg/errors v0.9.1 +go 1.21 diff --git a/go.sum b/go.sum index 7c401c3..e69de29 100644 --- a/go.sum +++ b/go.sum @@ -1,2 +0,0 @@ -github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4= -github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= diff --git a/music/tracked/s3m/instheader.go b/music/tracked/s3m/instheader.go index e502281..f133504 100644 --- a/music/tracked/s3m/instheader.go +++ b/music/tracked/s3m/instheader.go @@ -2,10 +2,9 @@ package s3m import ( "encoding/binary" + "fmt" "io" - "github.com/pkg/errors" - "github.com/gotracker/goaudiofile/internal/util" ) @@ -88,7 +87,7 @@ func ReadSCRS(r io.Reader) (*SCRS, error) { case SCRSTypeOPL2Melody, SCRSTypeOPL2BassDrum, SCRSTypeOPL2Snare, SCRSTypeOPL2Tom, SCRSTypeOPL2Cymbal, SCRSTypeOPL2HiHat: sh.Ancillary = &SCRSAdlibHeader{} default: - return nil, errors.Errorf("unknown SCRS instrument type %0.2x", sh.Head.Type) + return nil, fmt.Errorf("unknown SCRS instrument type %0.2x", sh.Head.Type) } if sh.Ancillary != nil {