mirror of https://github.com/go-gorm/gorm.git
Remove uncessary switch case
This commit is contained in:
parent
4eeb839cea
commit
df2365057b
|
@ -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:
|
||||||
|
|
Loading…
Reference in New Issue