From 18806e5524a59ab71c7cef9f2e018f0cb1e755a6 Mon Sep 17 00:00:00 2001 From: David Baker Date: Thu, 6 Apr 2017 16:58:13 +0100 Subject: [PATCH] lint --- spec/test-utils.js | 1 + src/store/indexeddb-local-backend.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/spec/test-utils.js b/spec/test-utils.js index 2f5247b4e..ab47a85e7 100644 --- a/spec/test-utils.js +++ b/spec/test-utils.js @@ -9,6 +9,7 @@ const MatrixEvent = sdk.MatrixEvent; * Return a promise that is resolved when the client next emits a * SYNCING event. * @param {Object} client The client + * @return {Promise} Resolves once the client has emitted a SYNCING event */ module.exports.syncPromise = function(client) { const def = q.defer(); diff --git a/src/store/indexeddb-local-backend.js b/src/store/indexeddb-local-backend.js index 4e732dfbe..5017a4c92 100644 --- a/src/store/indexeddb-local-backend.js +++ b/src/store/indexeddb-local-backend.js @@ -227,7 +227,7 @@ LocalIndexedDBStoreBackend.prototype = { * Users with the same 'userId' will be replaced. * Prfesence events should be the event in its raw form (not the Event * object) - * @param {Object[]} users An array of users + * @param {Object[]} tuples An array of [userid, event] tuples * @return {Promise} Resolves if the users were persisted. */ _persistUserPresenceEvents: function(tuples) {