From 3a4b6f0ea00757609132eb4af97e9e68cb4e5fa3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Van=20Rompay?= Date: Mon, 27 Jan 2020 11:48:28 +0100 Subject: [PATCH] rename "kwargs" to "opts" --- src/crypto/index.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/crypto/index.js b/src/crypto/index.js index 5c0ade885..268278160 100644 --- a/src/crypto/index.js +++ b/src/crypto/index.js @@ -229,14 +229,14 @@ utils.inherits(Crypto, EventEmitter); * * Returns a promise which resolves once the crypto module is ready for use. * - * @param {Object} kwargs keyword arguments. - * @param {string} kwargs.exportedOlmDevice (Optional) data from exported device + * @param {Object} opts keyword arguments. + * @param {string} opts.exportedOlmDevice (Optional) data from exported device * that must be re-created. */ -Crypto.prototype.init = async function(kwargs) { +Crypto.prototype.init = async function(opts) { const { exportedOlmDevice, - } = kwargs || {}; + } = opts || {}; logger.log("Crypto: initialising Olm..."); await global.Olm.init();