Skip to content

Commit

Permalink
Address go vet failure in SQL rule
Browse files Browse the repository at this point in the history
  • Loading branch information
gcmurphy committed Nov 3, 2016
1 parent 344ebd1 commit 686927c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions rules/sql.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,12 @@ type SqlStrConcat struct {
SqlStatement
}

// see if we can figgure out what it is
// see if we can figure out what it is
func (s *SqlStrConcat) checkObject(n *ast.Ident) bool {
if n.Obj != nil {
return (n.Obj.Kind != ast.Var || n.Obj.Kind != ast.Fun)
// 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
}
Expand Down

0 comments on commit 686927c

Please sign in to comment.