[#38] added lint and used the lint suggestions

This commit is contained in:
Valley authored and GitHub committed 2022-07-09 17:17:41 +03:00
1 parent dfd9528847
commit d64fbf9011
36 files changed
+110 -65

No files matched your search

+3
View File
@@ -396,6 +396,9 @@ func TestSyncRecordTableSchema(t *testing.T) {
t.Fatal(err)
}
updatedCollection, err := app.Dao().FindCollectionByNameOrId("demo")
if err != nil {
t.Fatal(err)
}
updatedCollection.Name = "demo_renamed"
updatedCollection.Schema.RemoveField(updatedCollection.Schema.GetFieldByName("file").Id)
updatedCollection.Schema.AddField(