errcheck issues fixed (#29045)
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
3752518e36
Коммит
6fd464a398
@@ -109,7 +109,6 @@ issues:
|
||||
channels/app/job_test.go|\
|
||||
channels/app/login_test.go|\
|
||||
channels/app/migrations.go|\
|
||||
channels/app/notification_push.go|\
|
||||
channels/app/notification_test.go|\
|
||||
channels/app/onboarding_test.go|\
|
||||
channels/app/permissions.go|\
|
||||
|
||||
@@ -530,9 +530,12 @@ func (a *App) sendToPushProxy(msg *model.PushNotification, session *model.Sessio
|
||||
|
||||
switch pushResponse[model.PushStatus] {
|
||||
case model.PushStatusRemove:
|
||||
a.SetExtraSessionProps(session, map[string]string{
|
||||
appErr := a.SetExtraSessionProps(session, map[string]string{
|
||||
model.SessionPropLastRemovedDeviceId: session.DeviceId,
|
||||
})
|
||||
if appErr != nil {
|
||||
return fmt.Errorf("Failed to set extra session properties: %w", appErr)
|
||||
}
|
||||
a.ClearSessionCacheForUser(session.UserId)
|
||||
return errors.New(notificationErrorRemoveDevice)
|
||||
case model.PushStatusFail:
|
||||
|
||||
Ссылка в новой задаче
Block a user