remove unnecessary collection conversion

This commit is contained in:
Thibault Duplessis 2016-01-24 10:34:07 +07:00
parent f2be8e3702
commit 39dfb2c924

View file

@ -41,8 +41,8 @@ private[timeline] final class Push(
private def propagate(propagations: List[Propagation]): Fu[List[String]] =
propagations.map {
case Users(ids) => fuccess(ids)
case Followers(id) => getFollowerIds(id) map (_.toList)
case Friends(id) => getFriendIds(id) map (_.toList)
case Followers(id) => getFollowerIds(id)
case Friends(id) => getFriendIds(id)
case StaffFriends(id) => getFriendIds(id) flatMap UserRepo.byIds map {
_ filter Granter(_.StaffForum) map (_.id)
}