1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-12-04 05:02:41 +03:00

fix destructuration of potentially nil value

This commit is contained in:
Cédric Van Rompay
2020-01-23 18:53:42 +01:00
parent 1d3a7b3d52
commit 9346c83dc1

View File

@@ -236,7 +236,7 @@ utils.inherits(Crypto, EventEmitter);
Crypto.prototype.init = async function(kwargs) {
const {
exportedOlmDevice,
} = kwargs;
} = kwargs || {};
logger.log("Crypto: initialising Olm...");
await global.Olm.init();