Skip to content

Commit

Permalink
remove unnecessary collection conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
ornicar committed Jan 24, 2016
1 parent f2be8e3 commit 39dfb2c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/timeline/src/main/Push.scala
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit 39dfb2c

Please sign in to comment.