Skip to content

Commit 8965ed4

Browse files
committed
fixing lint error in mockcollector
1 parent 5832e68 commit 8965ed4

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

test/mock/collector/mock-collector/auth/auth.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ type Option func(*HeadersCheck)
3333
// Ensure that the authenticator implements the auth.Server interface.
3434
var _ auth.Server = (*HeadersCheck)(nil)
3535

36+
//nolint:ireturn //must return an interface
3637
func NewFactory() extension.Factory {
3738
return extension.NewFactory(
3839
aType,
@@ -55,6 +56,7 @@ func (a *HeadersCheck) Authenticate(ctx context.Context, headers map[string][]st
5556
return ctx, nil
5657
}
5758

59+
//nolint:ireturn //must return an interface
5860
func CreateAuthExtensionFunc(
5961
_ context.Context,
6062
setting extension.Settings,

test/mock/collector/mock-collector/auth/config.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ type Config struct {
1717
AuthenticatorID component.ID `mapstructure:",squash"`
1818
}
1919

20+
//nolint:ireturn //must return an interface
2021
func CreateDefaultConfig() component.Config {
2122
return &Config{
2223
AuthenticatorID: HeadersCheckID,

0 commit comments

Comments
 (0)