Permalink
Browse files

use Promise.apply

  • Loading branch information...
1 parent 92f0506 commit b6118e8c9d4a05513dc07739c9a7d90a59928e38 @n8han committed Feb 29, 2012
Showing with 4 additions and 4 deletions.
  1. +4 −4 src/main/scala/herald.scala
@@ -132,10 +132,10 @@ object Herald {
val either = args match {
case Array("--publish") =>
val promised = for {
- body <- Promise.of(bodyContent).right
- title <- Promise.of(title).right
- email <- Promise.of(posterousEmail).right
- pass <- Promise.of(posterousPassword).right
+ body <- Promise(bodyContent).right
+ title <- Promise(title).right
+ email <- Promise(posterousEmail).right
+ pass <- Promise(posterousPassword).right
_ <- Publish.duplicate(email, pass, site, title).right
url <- Publish(body, email, pass, siteId, title, name).right
} yield {

0 comments on commit b6118e8

Please sign in to comment.