@@ -292,9 +292,6 @@ func syncMain(ctx context.Context, filenames []string, dry bool, parallelism,
292
292
for _ , c := range consumerGroupsGlobal {
293
293
targetContent .ConsumerGroups = append (targetContent .ConsumerGroups ,
294
294
file.FConsumerGroupObject {ConsumerGroup : * c .ConsumerGroup })
295
- if err != nil {
296
- return fmt .Errorf ("error adding global consumer group %v: %w" , * c .ConsumerGroup .Name , err )
297
- }
298
295
}
299
296
}
300
297
@@ -310,9 +307,6 @@ func syncMain(ctx context.Context, filenames []string, dry bool, parallelism,
310
307
}
311
308
for _ , c := range consumersGlobal {
312
309
targetContent .Consumers = append (targetContent .Consumers , file.FConsumer {Consumer : * c })
313
- if err != nil {
314
- return fmt .Errorf ("error adding global consumer %v: %w" , * c .Username , err )
315
- }
316
310
}
317
311
}
318
312
@@ -328,9 +322,6 @@ func syncMain(ctx context.Context, filenames []string, dry bool, parallelism,
328
322
}
329
323
for _ , r := range routesGlobal {
330
324
targetContent .Routes = append (targetContent .Routes , file.FRoute {Route : * r })
331
- if err != nil {
332
- return fmt .Errorf ("error adding global route %v: %w" , r .FriendlyName (), err )
333
- }
334
325
}
335
326
}
336
327
@@ -346,9 +337,6 @@ func syncMain(ctx context.Context, filenames []string, dry bool, parallelism,
346
337
}
347
338
for _ , r := range servicesGlobal {
348
339
targetContent .Services = append (targetContent .Services , file.FService {Service : * r })
349
- if err != nil {
350
- return fmt .Errorf ("error adding global service %v: %w" , r .FriendlyName (), err )
351
- }
352
340
}
353
341
}
354
342
@@ -364,9 +352,6 @@ func syncMain(ctx context.Context, filenames []string, dry bool, parallelism,
364
352
}
365
353
for _ , p := range partialsGlobal {
366
354
targetContent .Partials = append (targetContent .Partials , file.FPartial {Partial : * p })
367
- if err != nil {
368
- return fmt .Errorf ("error adding global partial %v: %w" , p .FriendlyName (), err )
369
- }
370
355
}
371
356
}
372
357
0 commit comments