diff --git a/main.js b/main.js index 1939d04..fb4f20e 100644 --- a/main.js +++ b/main.js @@ -101,7 +101,8 @@ async function run() { const unfollowers = following.filter(user => !followers.map(follower => follower.login).includes(user.login)); const unfollowing = followers.filter(user => !following.map(follow => follow.login).includes(user.login)); followers.reverse(); - + console.log('unfollowers -> ', unfollowers, ' || unfollowing -> ', unfollowing); + if(unfollowers.length > 0) { await queryUnfollowUnfollowers(unfollowers.entries()); console.log(`You unfollowed the ${unfollowers.length} bad guy${unfollowers.length > 1 ? 's' : ''}.`);