You've already forked matrix-js-sdk
mirror of
https://github.com/matrix-org/matrix-js-sdk.git
synced 2025-11-28 05:03:59 +03:00
SSSSCryptoCallbacks.getSecretStorageKey may return Promise<void>
If no result is found, the function may reach the last line without `return` ever being called.
This commit is contained in:
@@ -356,7 +356,7 @@ class SSSSCryptoCallbacks {
|
|||||||
public async getSecretStorageKey(
|
public async getSecretStorageKey(
|
||||||
{ keys }: { keys: Record<string, ISecretStorageKeyInfo> },
|
{ keys }: { keys: Record<string, ISecretStorageKeyInfo> },
|
||||||
name: string,
|
name: string,
|
||||||
): Promise<[string, Uint8Array]> {
|
): Promise<[string, Uint8Array]|void> {
|
||||||
for (const keyId of Object.keys(keys)) {
|
for (const keyId of Object.keys(keys)) {
|
||||||
const privateKey = this.privateKeys.get(keyId);
|
const privateKey = this.privateKeys.get(keyId);
|
||||||
if (privateKey) {
|
if (privateKey) {
|
||||||
|
|||||||
Reference in New Issue
Block a user