1
0
mirror of https://github.com/securego/gosec.git synced 2025-07-03 00:27:05 +02:00

Fix some lint warnings

Signed-off-by: Cosmin Cojocar <cosmin.cojocar@gmx.ch>
This commit is contained in:
Cosmin Cojocar
2019-04-30 11:32:06 +02:00
committed by Cosmin Cojocar
parent bac6f0fb8f
commit 3af4ae9ddb
4 changed files with 11 additions and 14 deletions

View File

@ -30,12 +30,6 @@ type TestPackage struct {
// NewTestPackage will create a new and empty package. Must call Close() to cleanup
// auxiliary files
func NewTestPackage() *TestPackage {
goPath := os.Getenv("GOPATH")
// if user did not set GOPATH, set to the default
if goPath == "" {
goPath = build.Default.GOPATH
}
workingDir, err := ioutil.TempDir("", "gosecs_test")
if err != nil {
return nil