Skip to content

Commit

Permalink
remove github.com/pkg/errors dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
cornelk authored and rafiss committed Dec 30, 2022
1 parent 07f15fe commit 96293ce
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ require (
github.com/jackc/pgx/v4 v4.16.1
github.com/jmoiron/sqlx v1.3.5
github.com/lib/pq v1.10.6
github.com/pkg/errors v0.9.1
github.com/pkg/errors v0.9.1 // indirect
github.com/shopspring/decimal v1.3.1 // indirect
github.com/stretchr/testify v1.7.0
golang.org/x/crypto v0.0.0-20220517005047-85d78b3ac167 // indirect
Expand Down
4 changes: 1 addition & 3 deletions testserver/version/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@ import (
"regexp"
"strconv"
"strings"

"github.com/pkg/errors"
)

// Version represents a semantic version; see
Expand Down Expand Up @@ -92,7 +90,7 @@ var numericRE = regexp.MustCompile(`^(0|[1-9][0-9]*)$`)
// dots.
func Parse(str string) (*Version, error) {
if !versionRE.MatchString(str) {
return nil, errors.Errorf("invalid version string '%s'", str)
return nil, fmt.Errorf("invalid version string '%s'", str)
}

var v Version
Expand Down

0 comments on commit 96293ce

Please sign in to comment.