src/retrieve.js
Function retrieveForNew
has 51 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
retrieveForNew(params, tweetsLeft, tweetsRetrieved) {
// Copy object to allow for proper unit testing
const request = Object.assign({}, params);
// If first request..
Function retrieveForExisting
has 43 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
retrieveForExisting(params, tweetsRetrieved) {
// Copy object to allow for proper unit testing
const request = Object.assign({}, params);
const firstReq = !request.hasOwnProperty('max_id');