Skip to content

Commit

Permalink
Remove unneeded build context
Browse files Browse the repository at this point in the history
  • Loading branch information
zimmski committed Oct 18, 2015
1 parent a4f12b0 commit 176d933
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions main.go
Expand Up @@ -3,7 +3,6 @@ package main
import (
"flag"
"fmt"
"go/build"
"os"
"regexp"
"runtime"
Expand Down Expand Up @@ -146,11 +145,6 @@ func parseFlags(checker *errcheck.Checker, args []string) ([]string, int) {
}
checker.Ignore = ignore

ctx := gotool.Context{
BuildContext: build.Default,
}
ctx.BuildContext.BuildTags = tags

// ImportPaths normalizes paths and expands '...'
return gotool.ImportPaths(flags.Args()), exitCodeOk
}
Expand Down

0 comments on commit 176d933

Please sign in to comment.