refactor: run Go modernize (#5002)

This commit is contained in:
Maximilian
2026-02-08 08:57:30 -06:00
committed by GitHub
parent 408aa78ed5
commit a704e86ac1
102 changed files with 322 additions and 352 deletions
+3 -3
View File
@@ -10,13 +10,13 @@ type MockShareRepo struct {
rest.Repository
rest.Persistable
Entity interface{}
Entity any
ID string
Cols []string
Error error
}
func (m *MockShareRepo) Save(entity interface{}) (string, error) {
func (m *MockShareRepo) Save(entity any) (string, error) {
if m.Error != nil {
return "", m.Error
}
@@ -28,7 +28,7 @@ func (m *MockShareRepo) Save(entity interface{}) (string, error) {
return s.ID, nil
}
func (m *MockShareRepo) Update(id string, entity interface{}, cols ...string) error {
func (m *MockShareRepo) Update(id string, entity any, cols ...string) error {
if m.Error != nil {
return m.Error
}