From a493a0ddb37fcabdc23fdfd60e8e738f6bc47c7c Mon Sep 17 00:00:00 2001 From: Richard van der Hoff Date: Thu, 7 Apr 2016 14:30:35 +0100 Subject: [PATCH] Fix lint errors --- lib/timeline-window.js | 4 ++-- spec/unit/timeline-window.spec.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/timeline-window.js b/lib/timeline-window.js index 67e949c47..10d7d3f98 100644 --- a/lib/timeline-window.js +++ b/lib/timeline-window.js @@ -186,8 +186,8 @@ TimelineWindow.prototype.canPaginate = function(direction) { * even if there are fewer than 'size' of them, as we will just return those * we already know about.) * - * @param {number} [requestLimit=5] limit for the number of API requests we should - * make. + * @param {number} [requestLimit = 5] limit for the number of API requests we + * should make. * * @return {module:client.Promise} Resolves to a boolean which is true if more events * were successfully retrieved. diff --git a/spec/unit/timeline-window.spec.js b/spec/unit/timeline-window.spec.js index ee85b5fe5..b6f91d111 100644 --- a/spec/unit/timeline-window.spec.js +++ b/spec/unit/timeline-window.spec.js @@ -431,7 +431,7 @@ describe("TimelineWindow", function() { expect(timeline0).toBe(timeline); expect(opts.backwards).toBe(false); expect(opts.limit).toEqual(2); - paginateCount += 1 + paginateCount += 1; return q(true); };