Skip to content

Commit

Permalink
go.mod: get rid of github.com/pkg/errors dependency
Browse files Browse the repository at this point in the history
Signed-off-by: Anna Shaleva <[email protected]>
  • Loading branch information
AnnaShaleva committed Mar 4, 2024
1 parent 68abe12 commit a133326
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
1 change: 0 additions & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ go 1.20

require (
github.com/nspcc-dev/rfc6979 v0.2.1
github.com/pkg/errors v0.9.1
github.com/stretchr/testify v1.9.0
github.com/twmb/murmur3 v1.1.8
go.uber.org/zap v1.27.0
Expand Down
2 changes: 0 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/nspcc-dev/rfc6979 v0.2.1 h1:8wWxkamHWFmO790GsewSoKUSJjVnL1fmdRpokU/RgRM=
github.com/nspcc-dev/rfc6979 v0.2.1/go.mod h1:Tk7h5kyUWkhjyO3zUgFFhy1v2vQv3BvQEntakdtqrWc=
github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4=
github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsTg=
Expand Down
4 changes: 2 additions & 2 deletions internal/payload/consensus_message.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ package payload
import (
"bytes"
"encoding/gob"
"fmt"

"github.com/nspcc-dev/dbft"
"github.com/nspcc-dev/dbft/internal/crypto"
"github.com/pkg/errors"
)

type (
Expand Down Expand Up @@ -72,7 +72,7 @@ func (m *message) DecodeBinary(r *gob.Decoder) error {
case dbft.RecoveryMessageType:
m.payload = new(recoveryMessage)
default:
return errors.Errorf("invalid type: 0x%02x", byte(m.cmType))
return fmt.Errorf("invalid type: 0x%02x", byte(m.cmType))

Check warning on line 75 in internal/payload/consensus_message.go

View check run for this annotation

Codecov / codecov/patch

internal/payload/consensus_message.go#L75

Added line #L75 was not covered by tests
}

rr := bytes.NewReader(aux.Payload)
Expand Down

0 comments on commit a133326

Please sign in to comment.