Skip to content

Commit

Permalink
copypasta correction (#3155)
Browse files Browse the repository at this point in the history
  • Loading branch information
geoffjentry committed Jan 19, 2018
1 parent ed90b8d commit dc5e8ce
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cwl/src/main/scala/cwl/CwlJsonToDelayedCoercionFunction.scala
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ private [cwl] object CwlJsonToDelayedCoercionFunction extends Json.Folder[Delaye
case (k, v) =>
composite.typeMap.get(k).map({ valueType =>
v.foldWith(this).apply(valueType).map(k -> _)
}).getOrElse(s"Input field $k is not defined in the composite input type ${composite}".invalidNel)
}).getOrElse(s"Input field $k is not defined in the composite input type $composite".invalidNel)
}).map(_.toMap[String, WomValue])

foldedMap.map(WomObject.withType(_, composite))
Expand All @@ -71,6 +71,6 @@ private [cwl] object CwlJsonToDelayedCoercionFunction extends Json.Folder[Delaye
}).map(_.toMap[String, WomValue])

foldedMap.map(WomObject.apply)
case other => s"Cannot convert an array input value into a non array type: $other".invalidNel
case other => s"Cannot convert an object input value into a non object type: $other".invalidNel
}
}

0 comments on commit dc5e8ce

Please sign in to comment.