From 6225e2a39ce5685328d214c1ed8458050b8809b7 Mon Sep 17 00:00:00 2001 From: Joel Rebello Date: Fri, 22 Dec 2023 16:11:10 +0100 Subject: [PATCH] purge redundant nil check --- internal/store/serverservice/attributes.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/internal/store/serverservice/attributes.go b/internal/store/serverservice/attributes.go index 2923c5d7..e5fb73c6 100644 --- a/internal/store/serverservice/attributes.go +++ b/internal/store/serverservice/attributes.go @@ -64,11 +64,7 @@ func (r *Store) createUpdateServerAttributes(ctx context.Context, server *server return err } - if err := r.publishUEFIVars(ctx, server.UUID, asset); err != nil { - return err - } - - return nil + return r.publishUEFIVars(ctx, server.UUID, asset) } func (r *Store) publishUEFIVars(ctx context.Context, serverID uuid.UUID, asset *model.Asset) error {