MM-15294: migrate commandstore.Update to sync by default (#10745)

* MM-15294: migrate commandstore.Update to sync by default

* minor change for code consistency
Этот коммит содержится в:
Puneeth Reddy
2019-04-29 07:22:44 -07:00
коммит произвёл Lev
родитель dec3c8facb
Коммит 5b70962f71
5 изменённых файлов: 33 добавлений и 35 удалений

Просмотреть файл

@@ -151,17 +151,26 @@ func (_m *CommandStore) Save(webhook *model.Command) store.StoreChannel {
}
// Update provides a mock function with given fields: hook
func (_m *CommandStore) Update(hook *model.Command) store.StoreChannel {
func (_m *CommandStore) Update(hook *model.Command) (*model.Command, *model.AppError) {
ret := _m.Called(hook)
var r0 store.StoreChannel
if rf, ok := ret.Get(0).(func(*model.Command) store.StoreChannel); ok {
var r0 *model.Command
if rf, ok := ret.Get(0).(func(*model.Command) *model.Command); ok {
r0 = rf(hook)
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).(store.StoreChannel)
r0 = ret.Get(0).(*model.Command)
}
}
return r0
var r1 *model.AppError
if rf, ok := ret.Get(1).(func(*model.Command) *model.AppError); ok {
r1 = rf(hook)
} else {
if ret.Get(1) != nil {
r1 = ret.Get(1).(*model.AppError)
}
}
return r0, r1
}