From d924855eb540b6c71d6292f3507b344c3ad5a9f4 Mon Sep 17 00:00:00 2001 From: Antoine Toulme Date: Wed, 7 Aug 2024 09:30:35 -0700 Subject: [PATCH] [chore] avoid mixing pointer and non-pointer receiver on struct functions (#10667) Fix an IDE warning about mixing receiver types. --- connector/internal/factory.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/connector/internal/factory.go b/connector/internal/factory.go index 5cff95c854a..09f6c2ddbf5 100644 --- a/connector/internal/factory.go +++ b/connector/internal/factory.go @@ -389,11 +389,11 @@ func (f CreateProfilesToLogsFunc) CreateProfilesToLogs( } // Type returns the type of component. -func (f *factory) Type() component.Type { +func (f factory) Type() component.Type { return f.cfgType } -func (f *factory) unexportedFactoryFunc() {} +func (f factory) unexportedFactoryFunc() {} func (f factory) TracesToTracesStability() component.StabilityLevel { return f.tracesToTracesStabilityLevel