Added comment to fix eslint

This commit is contained in:
Keerthi Niranjan 2017-08-01 17:48:12 +05:30 committed by Keerthi Niranjan
parent 5896e4d6ae
commit 858a1c8a20

View File

@ -39,6 +39,7 @@ const SORT_BY_SCORE = 0;
const BATCH_RANDOM_INDEX_PATH_LENGTH = 20; const BATCH_RANDOM_INDEX_PATH_LENGTH = 20;
class Search { class Search {
//TODO: fix eslint class-methods-use-this
/*eslint-disable class-methods-use-this */ /*eslint-disable class-methods-use-this */
constructor(userId) { constructor(userId) {
@ -145,6 +146,7 @@ class Search {
ed_time = new Date(endDate).getTime(); ed_time = new Date(endDate).getTime();
} }
//TODO: fix eslint no-param-reassign
/*eslint-disable no-param-reassign */ /*eslint-disable no-param-reassign */
if (!limit && limit === "" && typeof limit !== 'number' && Math.round(limit) !== limit) { if (!limit && limit === "" && typeof limit !== 'number' && Math.round(limit) !== limit) {
limit = 25; limit = 25;
@ -176,7 +178,6 @@ class Search {
if (threadId && threadId !== "") { if (threadId && threadId !== "") {
q += ` AND (threadId: ${threadId})`; q += ` AND (threadId: ${threadId})`;
} }
console.log(q)
return q; return q;
} }