From 35099ec6c168d3b05ad1e1ff67d962febd0ad2e1 Mon Sep 17 00:00:00 2001 From: daheige Date: Mon, 2 Aug 2021 20:48:49 +0800 Subject: [PATCH] remove comment for GuessConstraintAndTable func --- migrator/migrator.go | 1 - 1 file changed, 1 deletion(-) diff --git a/migrator/migrator.go b/migrator/migrator.go index fe671991..6fe8d2d2 100644 --- a/migrator/migrator.go +++ b/migrator/migrator.go @@ -493,7 +493,6 @@ func (m Migrator) GuessConstraintAndTable(stmt *gorm.Statement, name string) (_ } if field := stmt.Schema.LookUpField(name); field != nil { - // fix return value for *schema.Check for k := range checkConstraints { if checkConstraints[k].Field == field { v := checkConstraints[k]