From 16a86559c9853bb8e580158bad0ef76b7aeb9bf1 Mon Sep 17 00:00:00 2001 From: Curtis Robert Date: Mon, 5 Feb 2024 11:52:35 -0800 Subject: [PATCH] [chore][receiver/sqlquery] Remove redundant validate function (#31042) **Description:** [Requested change by Dmitrii](https://github.com/open-telemetry/opentelemetry-collector-contrib/pull/30709#discussion_r1475381584), this function was redundant as the underlying config has a `Validate` function called automatically. --- receiver/sqlqueryreceiver/config.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/receiver/sqlqueryreceiver/config.go b/receiver/sqlqueryreceiver/config.go index d83427f37365..e3459f5dc924 100644 --- a/receiver/sqlqueryreceiver/config.go +++ b/receiver/sqlqueryreceiver/config.go @@ -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