Merge pull request #65 from GoASTScanner/sql_fix

Confirmed correct behavior for SQL tests
This commit is contained in:
Grant Murphy 2016-11-02 19:20:07 -07:00 committed by GitHub
commit 068e8a85ad

View file

@ -33,8 +33,6 @@ type SqlStrConcat struct {
// see if we can figure out what it is
func (s *SqlStrConcat) checkObject(n *ast.Ident) bool {
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 false