diff --git a/adapters/grpc/document_grpc.go b/adapters/grpc/document_grpc.go index 19fced0d4..9e5111036 100644 --- a/adapters/grpc/document_grpc.go +++ b/adapters/grpc/document_grpc.go @@ -122,7 +122,7 @@ func toPbDoc(doc *sdk.Document) (*pb.Document, error) { } func toSdkKey(key *pb.Key) *sdk.Key { - if key != nil { + if key == nil { return nil }