Skip to content

Commit

Permalink
purge redundant nil check
Browse files Browse the repository at this point in the history
  • Loading branch information
joelrebel committed Dec 22, 2023
1 parent c47de50 commit 7d55a5f
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions internal/store/serverservice/attributes.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 7d55a5f

Please sign in to comment.