Skip to content

Commit

Permalink
errcheck_test.go: Remove dead code
Browse files Browse the repository at this point in the history
Go 1.5 is no longer supported
  • Loading branch information
LukeShu committed Jun 28, 2019
1 parent e14f8d5 commit 4f924b3
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions internal/errcheck/errcheck_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ import (
"os"
"path"
"regexp"
"runtime"
"strings"
"testing"

"golang.org/x/tools/go/packages"
Expand Down Expand Up @@ -216,11 +214,6 @@ func TestIgnore(t *testing.T) {
return nil
}`

if strings.HasPrefix(runtime.Version(), "go1.5") && os.Getenv("GO15VENDOREXPERIMENT") != "1" {
// skip tests if running in go1.5 and vendoring is not enabled
t.SkipNow()
}

// copy testvendor directory into directory for test
tmpGopath, err := ioutil.TempDir("", "testvendor")
if err != nil {
Expand Down Expand Up @@ -315,11 +308,6 @@ func TestWithoutGeneratedCode(t *testing.T) {
return nil
}`

if strings.HasPrefix(runtime.Version(), "go1.5") && os.Getenv("GO15VENDOREXPERIMENT") != "1" {
// skip tests if running in go1.5 and vendoring is not enabled
t.SkipNow()
}

// copy testvendor directory into directory for test
tmpGopath, err := ioutil.TempDir("", "testvendor")
if err != nil {
Expand Down

0 comments on commit 4f924b3

Please sign in to comment.