From 8dd173a225d6b15bcd56d44ec45a05b91e1b26ab Mon Sep 17 00:00:00 2001 From: Mark Bates Date: Wed, 16 Oct 2019 10:20:02 -0400 Subject: [PATCH] remove dep on errx --- go.mod | 1 - go.sum | 2 -- parser/file.go | 4 +--- 3 files changed, 1 insertion(+), 6 deletions(-) diff --git a/go.mod b/go.mod index 1185fde..54890a4 100644 --- a/go.mod +++ b/go.mod @@ -5,7 +5,6 @@ go 1.13 require ( github.com/davecgh/go-spew v1.1.1 // indirect github.com/kr/pretty v0.1.0 // indirect - github.com/markbates/errx v1.1.0 github.com/markbates/hepa v0.0.0-20190718154049-1d900199db5b github.com/stretchr/testify v1.4.0 gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127 // indirect diff --git a/go.sum b/go.sum index e800a39..3d600c8 100644 --- a/go.sum +++ b/go.sum @@ -7,8 +7,6 @@ github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORN github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ= github.com/kr/text v0.1.0 h1:45sCR5RtlFHMR4UwH9sdQ5TC8v0qDQCHnXt+kaKSTVE= github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI= -github.com/markbates/errx v1.1.0 h1:QDFeR+UP95dO12JgW+tgi2UVfo0V8YBHiUIOaeBPiEI= -github.com/markbates/errx v1.1.0/go.mod h1:PLa46Oex9KNbVDZhKel8v1OT7hD5JZ2eI7AHhA0wswc= github.com/markbates/hepa v0.0.0-20190718154049-1d900199db5b h1:ns0oO2sMEoFJMmrbiWzGQO5AR3GgqfYRAos0gz8C0Cw= github.com/markbates/hepa v0.0.0-20190718154049-1d900199db5b/go.mod h1:jHlCX3RNqF+epcY1FxjLyDGzr3l9+mNCh3YDDw6BFvY= github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= diff --git a/parser/file.go b/parser/file.go index 9ea2bd5..e1d738b 100644 --- a/parser/file.go +++ b/parser/file.go @@ -6,8 +6,6 @@ import ( "go/token" "io" "io/ioutil" - - "github.com/markbates/errx" ) type parsedFile struct { @@ -30,7 +28,7 @@ func parseFileMode(f string, mode parser.Mode) (parsedFile, error) { src := string(b) pff, err := parser.ParseFile(pf.FileSet, f, src, mode) - if err != nil && errx.Unwrap(err) != io.EOF { + if err != nil && err != io.EOF { return pf, err } pf.Ast = pff