Fix syntax error

This commit is contained in:
Neil Alexander 2021-03-02 10:24:31 +00:00
parent 7facc5bcee
commit 2324209843
No known key found for this signature in database
GPG key ID: A02A2019A2BB0944

View file

@ -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 {