Remove uncessary switch case

This commit is contained in:
Jinzhu 2022-02-09 17:23:16 +08:00
parent 4eeb839cea
commit df2365057b
1 changed files with 0 additions and 4 deletions

View File

@ -179,10 +179,6 @@ func (stmt *Statement) AddVar(writer clause.Writer, vars ...interface{}) {
} else { } else {
stmt.AddVar(writer, v.GormValue(stmt.Context, stmt.DB)) stmt.AddVar(writer, v.GormValue(stmt.Context, stmt.DB))
} }
case clause.Expr:
v.Build(stmt)
case *clause.Expr:
v.Build(stmt)
case clause.Expression: case clause.Expression:
v.Build(stmt) v.Build(stmt)
case driver.Valuer: case driver.Valuer: