Skip to content

Commit

Permalink
fix exhaustive lint for receivercreater (#23831)
Browse files Browse the repository at this point in the history
**Description:** 
related #23266

Signed-off-by: Ziqi Zhao <[email protected]>
  • Loading branch information
fatsheep9146 committed Jun 29, 2023
1 parent ead6114 commit 850add3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 0 additions & 3 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -176,9 +176,6 @@ issues:
- path: prometheusreceiver
linters:
- exhaustive
- path: receivercreator
linters:
- exhaustive
- path: statsdreceiver
linters:
- exhaustive
Expand Down
2 changes: 2 additions & 0 deletions receiver/receivercreator/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ func (mh *mockHostFactories) GetFactory(kind component.Kind, componentType compo
return mh.factories.Exporters[componentType]
case component.KindExtension:
return mh.factories.Extensions[componentType]
case component.KindConnector:
return mh.factories.Connectors[componentType]
}
return nil
}
Expand Down

0 comments on commit 850add3

Please sign in to comment.