love that one! I also like this one: find + map = collectFirst


On Thu, May 30, 2013 at 1:07 PM, Patrik Nordwall
<notifications@github.com>wrote:

> In project/Publish.scala:
>
> > @@ -102,6 +103,11 @@ object Publish {
> >    def akkaCredentials: Seq[Credentials] =
> >      Option(System.getProperty("akka.publish.credentials", null)) map (f => Credentials(new File(f))) toSeq
> >
> > +  def pluginPublishLocally(default: File): Option[Resolver] =
> > +    Option(sys.props("publish.plugin.locally")) filter (_.toLowerCase == "true") map { _ =>
>
> filter+map = collect (but it doesn't matter here, and now)
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/akka/akka/pull/1515/files#r4465613>
> .
>