1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-11-26 17:03:12 +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:
Christian Paul
2021-08-13 15:15:20 +02:00
committed by GitHub
parent a2f514b544
commit 62058e6d48

View File

@@ -356,7 +356,7 @@ class SSSSCryptoCallbacks {
public async getSecretStorageKey(
{ keys }: { keys: Record<string, ISecretStorageKeyInfo> },
name: string,
): Promise<[string, Uint8Array]> {
): Promise<[string, Uint8Array]|void> {
for (const keyId of Object.keys(keys)) {
const privateKey = this.privateKeys.get(keyId);
if (privateKey) {