fix for golangci-lint
This commit is contained in:
parent
6cc0fb6f03
commit
08e9ba73a8
@ -27,11 +27,11 @@ func TestParseCustomTypeSchema(t *testing.T) {
|
|||||||
{Name: "Time", DBName: "time", BindNames: []string{"Time"}, DataType: schema.Time, CustomDataType: "time", Tag: `gorm:"type:time"`, TagSettings: map[string]string{"TYPE": "time"}},
|
{Name: "Time", DBName: "time", BindNames: []string{"Time"}, DataType: schema.Time, CustomDataType: "time", Tag: `gorm:"type:time"`, TagSettings: map[string]string{"TYPE": "time"}},
|
||||||
{Name: "DateTime", DBName: "date_time", BindNames: []string{"DateTime"}, DataType: schema.Time},
|
{Name: "DateTime", DBName: "date_time", BindNames: []string{"DateTime"}, DataType: schema.Time},
|
||||||
}
|
}
|
||||||
for _, f := range fields {
|
for i := range fields {
|
||||||
checkSchemaField(t, product, &f, func(field *schema.Field) {
|
checkSchemaField(t, product, &fields[i], func(field *schema.Field) {
|
||||||
f.Creatable = true
|
field.Creatable = true
|
||||||
f.Updatable = true
|
field.Updatable = true
|
||||||
f.Readable = true
|
field.Readable = true
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user