Skip to content

Commit

Permalink
[chore][receiver/sqlquery] Remove redundant validate function (#31042)
Browse files Browse the repository at this point in the history
**Description:** 
[Requested change by
Dmitrii](#30709 (comment)),
this function was redundant as the underlying config has a `Validate`
function called automatically.
  • Loading branch information
crobert-1 committed Feb 5, 2024
1 parent 3952e23 commit 16a8655
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions receiver/sqlqueryreceiver/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,6 @@ type Config struct {
sqlquery.Config `mapstructure:",squash"`
}

func (c Config) Validate() error {
return nil
}

func createDefaultConfig() component.Config {
cfg := scraperhelper.NewDefaultScraperControllerSettings(metadata.Type)
cfg.CollectionInterval = 10 * time.Second
Expand Down

0 comments on commit 16a8655

Please sign in to comment.