mirror of
https://github.com/securego/gosec.git
synced 2025-11-27 22:28:20 +02:00
@@ -33,8 +33,6 @@ type SqlStrConcat struct {
|
|||||||
// see if we can figure out what it is
|
// see if we can figure out what it is
|
||||||
func (s *SqlStrConcat) checkObject(n *ast.Ident) bool {
|
func (s *SqlStrConcat) checkObject(n *ast.Ident) bool {
|
||||||
if n.Obj != nil {
|
if n.Obj != nil {
|
||||||
// TODO(gm): Revisit logic used here.
|
|
||||||
//return (n.Obj.Kind != ast.Var || n.Obj.Kind != ast.Fun)
|
|
||||||
return n.Obj.Kind != ast.Var && n.Obj.Kind != ast.Fun
|
return n.Obj.Kind != ast.Var && n.Obj.Kind != ast.Fun
|
||||||
}
|
}
|
||||||
return false
|
return false
|
||||||
|
|||||||
Reference in New Issue
Block a user