mirror of
https://github.com/matrix-org/dendrite.git
synced 2026-01-09 23:23:10 -06:00
Return nil instead of an error which returned a HTTP 500
This commit is contained in:
parent
ca8fa0188d
commit
1d906a8b18
|
|
@ -743,7 +743,7 @@ func (a *UserInternalAPI) uploadBackupKeys(ctx context.Context, req *api.Perform
|
|||
return res, fmt.Errorf("failed to query version: %w", err)
|
||||
}
|
||||
if deleted {
|
||||
return res, fmt.Errorf("backup was deleted")
|
||||
return res, nil
|
||||
}
|
||||
if version != req.Version {
|
||||
return res, spec.WrongBackupVersionError(version)
|
||||
|
|
|
|||
Loading…
Reference in a new issue