Skip to content

Commit 7f430de

Browse files
authored
[chore][extension/googleclientauth] Use correct type for create func (#37568)
<!--Ex. Fixing a bug - Describe the bug and how this fixes the issue. Ex. Adding a feature - Explain what this achieves.--> #### Description <!-- Issue number (e.g. #1234) or full URL to issue, if applicable. --> Uses `extension.Extension` as the return type of `createExtension` function #### Link to tracking issue Needed for open-telemetry/opentelemetry-collector/pull/12208
1 parent 7800b4a commit 7f430de

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

extension/googleclientauthextension/factory.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ func NewFactory() extension.Factory {
2424
)
2525
}
2626

27-
func createExtension(ctx context.Context, set extension.Settings, cfg component.Config) (component.Component, error) {
27+
func createExtension(ctx context.Context, set extension.Settings, cfg component.Config) (extension.Extension, error) {
2828
eCfg := cfg.(*Config)
2929
return googleclientauthextension.CreateExtension(ctx, set, &eCfg.Config)
3030
}

0 commit comments

Comments
 (0)