From 5b731b5c3901e42328fea7a78cbf03b047f90293 Mon Sep 17 00:00:00 2001 From: Richard Hua Date: Sat, 20 Apr 2024 17:45:26 -0700 Subject: [PATCH] Fix lint --- pkg/mls/store/store.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkg/mls/store/store.go b/pkg/mls/store/store.go index c46ddf52..f26a42d3 100644 --- a/pkg/mls/store/store.go +++ b/pkg/mls/store/store.go @@ -90,7 +90,9 @@ func (s *Store) PublishIdentityUpdate(ctx context.Context, req *identity.Publish updates := make([]*associations.IdentityUpdate, 0, len(inbox_log_entries)+1) for _, log := range inbox_log_entries { identity_update := &associations.IdentityUpdate{} - proto.Unmarshal(log.IdentityUpdateProto, identity_update) + if err := proto.Unmarshal(log.IdentityUpdateProto, identity_update); err != nil { + return err + } updates = append(updates, identity_update) } _ = append(updates, new_update)