mirror of
https://github.com/securego/gosec.git
synced 2025-07-17 01:12:33 +02:00
Fix lint and fail on error in the ci build
This commit is contained in:
@ -168,7 +168,6 @@ func GetCallInfo(n ast.Node, ctx *Context) (string, string, error) {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
case *ast.Ident:
|
||||
@ -220,7 +219,6 @@ func GetIdentStringValues(ident *ast.Ident) []string {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
return values
|
||||
}
|
||||
@ -298,7 +296,7 @@ func Gopath() []string {
|
||||
}
|
||||
|
||||
// Getenv returns the values of the environment variable, otherwise
|
||||
//returns the default if variable is not set
|
||||
// returns the default if variable is not set
|
||||
func Getenv(key, userDefault string) string {
|
||||
if val := os.Getenv(key); val != "" {
|
||||
return val
|
||||
|
Reference in New Issue
Block a user