Slightly different approach in Obj C to get the desired result.
Obj C will gladly create default pb object from nilNSData, so that works great for creating empty list types.
In the case of non-list types, we're relying on the go-textile layer to return an error if a return type that should never be nil is going to be nil.
The only work left to do as seen is this PR is to make sure we return nil in cases where we know it is an acceptable return value from go-textile. This is usually in cases where we're querying for something by id.
Slightly different approach in Obj C to get the desired result.
Obj C will gladly create default pb object from
nil
NSData
, so that works great for creating empty list types.In the case of non-list types, we're relying on the go-textile layer to return an error if a return type that should never be
nil
is going to benil
.The only work left to do as seen is this PR is to make sure we return
nil
in cases where we know it is an acceptable return value from go-textile. This is usually in cases where we're querying for something by id.