Skip to content

Commit 754e9a7

Browse files
committed
Error is always nil in this method
1 parent f00ee74 commit 754e9a7

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

otelcol/collector.go

+1-3
Original file line numberDiff line numberDiff line change
@@ -172,9 +172,7 @@ func (col *Collector) createService(ctx context.Context, cfg *Config, factories
172172

173173
conf := confmap.New()
174174

175-
if err := conf.Marshal(cfg); err != nil {
176-
return nil, fmt.Errorf("could not marshal configuration: %w", err)
177-
}
175+
_ = conf.Marshal(cfg)
178176

179177
return service.New(ctx, service.Settings{
180178
BuildInfo: col.set.BuildInfo,

0 commit comments

Comments
 (0)