Skip to content

Commit

Permalink
Merge pull request #67 from mdiep/use-materialize
Browse files Browse the repository at this point in the history
Use `materialize` to create `Result<Any, AnyError>`
  • Loading branch information
mdiep authored Mar 30, 2017
2 parents 459c97d + 626293c commit c3394f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/Tentacle/Client.swift
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import Result

extension JSONSerialization {
internal static func deserializeJSON(_ data: Data) -> Result<Any, AnyError> {
return Result(try JSONSerialization.jsonObject(with: data))
return materialize(try JSONSerialization.jsonObject(with: data))
}
}

Expand Down

0 comments on commit c3394f5

Please sign in to comment.