From df2365057bb6c809b03d470323238262a93a9685 Mon Sep 17 00:00:00 2001 From: Jinzhu Date: Wed, 9 Feb 2022 17:23:16 +0800 Subject: [PATCH] Remove uncessary switch case --- statement.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/statement.go b/statement.go index 72359da2..23212642 100644 --- a/statement.go +++ b/statement.go @@ -179,10 +179,6 @@ func (stmt *Statement) AddVar(writer clause.Writer, vars ...interface{}) { } else { stmt.AddVar(writer, v.GormValue(stmt.Context, stmt.DB)) } - case clause.Expr: - v.Build(stmt) - case *clause.Expr: - v.Build(stmt) case clause.Expression: v.Build(stmt) case driver.Valuer: