cloudapi: remove redundant type from composite literal

Silence linter warning.
This commit is contained in:
Achilleas Koutsou 2023-05-15 19:04:07 +02:00 committed by Simon de Vlieger
parent 3b1d48ec99
commit 073f4f2025

View file

@ -147,7 +147,7 @@ func (s *Server) enqueueCompose(distribution distro.Distro, bp blueprint.Bluepri
if ir.ostree != nil {
jobID, err := s.workers.EnqueueOSTreeResolveJob(&worker.OSTreeResolveJob{
Specs: []worker.OSTreeResolveSpec{
worker.OSTreeResolveSpec{
{
URL: ir.ostree.URL,
Ref: ir.ostree.Ref,
Parent: ir.ostree.Parent,
@ -245,7 +245,7 @@ func (s *Server) enqueueKojiCompose(taskID uint64, server, name, version, releas
if ir.ostree != nil {
jobID, err := s.workers.EnqueueOSTreeResolveJob(&worker.OSTreeResolveJob{
Specs: []worker.OSTreeResolveSpec{
worker.OSTreeResolveSpec{
{
URL: ir.ostree.URL,
Ref: ir.ostree.Ref,
Parent: ir.ostree.Parent,