mirror of
https://github.com/matrix-org/dendrite.git
synced 2026-01-10 15:43:09 -06:00
Fix linter errors
This commit is contained in:
parent
ab0bf16ebd
commit
b7779dd872
|
|
@ -171,9 +171,9 @@ func (r *FederationInternalAPI) performJoinUsingServer(
|
||||||
return r.rsAPI.QueryUserIDForSender(ctx, roomID, senderID)
|
return r.rsAPI.QueryUserIDForSender(ctx, roomID, senderID)
|
||||||
},
|
},
|
||||||
SenderIDCreator: func(ctx context.Context, userID spec.UserID, roomID spec.RoomID) (spec.SenderID, error) {
|
SenderIDCreator: func(ctx context.Context, userID spec.UserID, roomID spec.RoomID) (spec.SenderID, error) {
|
||||||
key, err := r.rsAPI.GetOrCreateUserRoomPrivateKey(ctx, userID, roomID)
|
key, keyErr := r.rsAPI.GetOrCreateUserRoomPrivateKey(ctx, userID, roomID)
|
||||||
if err != nil {
|
if keyErr != nil {
|
||||||
return "", err
|
return "", keyErr
|
||||||
}
|
}
|
||||||
|
|
||||||
return spec.SenderID(spec.Base64Bytes(key).Encode()), nil
|
return spec.SenderID(spec.Base64Bytes(key).Encode()), nil
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue