mirror of https://github.com/mautrix/go.git
crypto/sql_store: fix a couple places where the error value is unused
Signed-off-by: Sumner Evans <sumner.evans@automattic.com>pull/217/head
parent
d10103dcf5
commit
0439180737
|
@ -331,6 +331,9 @@ func (store *SQLCryptoStore) GetGroupSession(ctx context.Context, roomID id.Room
|
|||
}
|
||||
}
|
||||
igs, chains, rs, err := store.postScanInboundGroupSession(sessionBytes, ratchetSafetyBytes, forwardingChains.String)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if senderKey == "" {
|
||||
senderKey = id.Curve25519(senderKeyDB.String)
|
||||
}
|
||||
|
@ -479,6 +482,9 @@ func (store *SQLCryptoStore) scanInboundGroupSession(rows dbutil.Scannable) (*In
|
|||
return nil, err
|
||||
}
|
||||
igs, chains, rs, err := store.postScanInboundGroupSession(sessionBytes, ratchetSafetyBytes, forwardingChains.String)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return &InboundGroupSession{
|
||||
Internal: *igs,
|
||||
SigningKey: id.Ed25519(signingKey.String),
|
||||
|
|
Loading…
Reference in New Issue