mirror of
https://github.com/matrix-org/dendrite.git
synced 2025-12-26 08:13:09 -06:00
Fix syntax error
This commit is contained in:
parent
7facc5bcee
commit
2324209843
|
|
@ -515,7 +515,7 @@ func (a *KeyInternalAPI) uploadLocalDeviceKeys(ctx context.Context, req *api.Per
|
||||||
func (a *KeyInternalAPI) uploadOneTimeKeys(ctx context.Context, req *api.PerformUploadKeysRequest, res *api.PerformUploadKeysResponse) {
|
func (a *KeyInternalAPI) uploadOneTimeKeys(ctx context.Context, req *api.PerformUploadKeysRequest, res *api.PerformUploadKeysResponse) {
|
||||||
if req.UserID == "" || req.DeviceID == "" {
|
if req.UserID == "" || req.DeviceID == "" {
|
||||||
res.Error = &api.KeyError{
|
res.Error = &api.KeyError{
|
||||||
Err: fmt.Sprintf("user ID or device ID missing")
|
Err: "user ID or device ID missing",
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if len(req.OneTimeKeys) == 0 {
|
if len(req.OneTimeKeys) == 0 {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue