Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

use Promise.apply

  • Loading branch information...
commit b6118e8c9d4a05513dc07739c9a7d90a59928e38 1 parent 92f0506
Nathan Hamblen authored
Showing with 4 additions and 4 deletions.
  1. +4 −4 src/main/scala/herald.scala
8 src/main/scala/herald.scala
View
@@ -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 {
Please sign in to comment.
Something went wrong with that request. Please try again.