make vet happy, use protobuf generated merger

This commit is contained in:
A.Unger committed 2020-10-22 13:39:54 +02:00
1 parent a484a6bc53
commit b232e9f46f
2 files changed
+3 -2

No files matched your search

+2 -1
View File
@@ -308,7 +308,8 @@ func (s Service) CreateAccount(ctx context.Context, in *proto.CreateAccountReque
if in.Account == nil {
return merrors.InternalServerError(s.id, "invalid account: empty")
}
*out = *in.Account
out.XXX_Merge(in.Account)
if out.Id == "" {
out.Id = uuid.Must(uuid.NewV4()).String()
+1 -1
View File
@@ -113,7 +113,7 @@ func (s Service) CreateGroup(c context.Context, in *proto.CreateGroupRequest, ou
if in.Group == nil {
return merrors.InternalServerError(s.id, "invalid group: empty")
}
*out = *in.Group
out.XXX_Merge(in.Group)
if out.Id == "" {
out.Id = uuid.Must(uuid.NewV4()).String()