fix return value and delete unused default

This commit is contained in:
deepoil 2020-08-18 15:49:19 +09:00
parent dc48e04896
commit a79673649f
2 changed files with 1 additions and 2 deletions

View File

@ -69,7 +69,7 @@ func (db *DB) Distinct(args ...interface{}) (tx *DB) {
if len(args) > 0 {
tx = tx.Select(args[0], args[1:]...)
}
return tx
return
}
// Select specify fields that you want when querying, creating, updating

View File

@ -148,7 +148,6 @@ func (tx *DB) assignInterfacesToValue(values ...interface{}) {
if field := tx.Statement.Schema.LookUpField(column.Name); field != nil {
tx.AddError(field.Set(tx.Statement.ReflectValue, eq.Value))
}
default:
}
}
}