xep_0384: otpk class doesn't need instancianting

Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
This commit is contained in:
Maxime “pep” Buquet 2019-01-31 11:27:10 +01:00
parent 6641404def
commit 4626c80ff3

View file

@ -152,7 +152,7 @@ class XEP_0384(BasePlugin):
if self.storage_backend is None: if self.storage_backend is None:
storage = JSONFileStorage(self.data_dir) storage = JSONFileStorage(self.data_dir)
otpkpolicy = self.otpk_policy() otpkpolicy = self.otpk_policy
bare_jid = self.xmpp.boundjid.bare bare_jid = self.xmpp.boundjid.bare
self._device_id = _load_device_id(self.data_dir) self._device_id = _load_device_id(self.data_dir)