1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-09-04 19:42:11 +03:00

More linting

This commit is contained in:
Kegan Dougal
2015-12-10 15:01:39 +00:00
parent 8576ebce8f
commit d6ba39f292
3 changed files with 6 additions and 3 deletions

View File

@@ -159,7 +159,7 @@ module.exports.MatrixInMemoryStore.prototype = {
try { try {
return this.localStorage.getItem("mxjssdk_memory_filter_" + filterName); return this.localStorage.getItem("mxjssdk_memory_filter_" + filterName);
} }
catch(e) {} catch (e) {}
return null; return null;
}, },

View File

@@ -22,6 +22,7 @@ var FILTER_SYNC = "FILTER_SYNC";
* Construct an entity which is able to sync with a homeserver. * Construct an entity which is able to sync with a homeserver.
* @constructor * @constructor
* @param {MatrixClient} client The matrix client instance to use. * @param {MatrixClient} client The matrix client instance to use.
* @param {Object} opts Config options
*/ */
function SyncApi(client, opts) { function SyncApi(client, opts) {
this.client = client; this.client = client;

View File

@@ -384,7 +384,8 @@ module.exports.runPolyfills = function() {
throw new TypeError(' this is null or not defined'); throw new TypeError(' this is null or not defined');
} }
// 1. Let O be the result of calling ToObject passing the |this| value as the argument. // 1. Let O be the result of calling ToObject passing the |this| value as the
// argument.
var O = Object(this); var O = Object(this);
// 2. Let lenValue be the result of calling the Get internal method of O with the // 2. Let lenValue be the result of calling the Get internal method of O with the
@@ -420,7 +421,8 @@ module.exports.runPolyfills = function() {
// c. If kPresent is true, then // c. If kPresent is true, then
if (k in O) { if (k in O) {
// i. Let kValue be the result of calling the Get internal method of O with argument Pk // i. Let kValue be the result of calling the Get internal method of O with
// argument Pk
kValue = O[k]; kValue = O[k];
// ii. Call the Call internal method of callback with T as the this value and // ii. Call the Call internal method of callback with T as the this value and