Skip to content

Commit

Permalink
Merge 0f5e22a into 8c99142
Browse files Browse the repository at this point in the history
  • Loading branch information
AnayoOleru committed May 8, 2019
2 parents 8c99142 + 0f5e22a commit 134b689
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions server/controllers/get-followers.controllers.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,13 +77,7 @@ const getFollowing = async (req, res) => {
},
],
});
if (users.length < 1) {
return res.status(200).json({
errors: {
body: ['Sorry, you are not following anyone'],
},
});
}

return res.status(200).json({
message:
'You have successfully retrieved all the users you are following',
Expand Down

0 comments on commit 134b689

Please sign in to comment.