diff --git a/plugins/inputs/cisco_telemetry_mdt/cisco_telemetry_mdt.go b/plugins/inputs/cisco_telemetry_mdt/cisco_telemetry_mdt.go index 90b8525b66237..481e60a96a9c6 100644 --- a/plugins/inputs/cisco_telemetry_mdt/cisco_telemetry_mdt.go +++ b/plugins/inputs/cisco_telemetry_mdt/cisco_telemetry_mdt.go @@ -218,7 +218,7 @@ func (c *CiscoTelemetryMDT) Start(acc telegraf.Accumulator) error { return nil } -func (*CiscoTelemetryMDT) Gather(_ telegraf.Accumulator) error { +func (*CiscoTelemetryMDT) Gather(telegraf.Accumulator) error { return nil } diff --git a/plugins/inputs/cloud_pubsub/cloud_pubsub.go b/plugins/inputs/cloud_pubsub/cloud_pubsub.go index 32ae76833c69d..d91c55f6683bf 100644 --- a/plugins/inputs/cloud_pubsub/cloud_pubsub.go +++ b/plugins/inputs/cloud_pubsub/cloud_pubsub.go @@ -152,7 +152,7 @@ func (ps *PubSub) Start(ac telegraf.Accumulator) error { } // Gather does nothing for this service input. -func (*PubSub) Gather(_ telegraf.Accumulator) error { +func (*PubSub) Gather(telegraf.Accumulator) error { return nil } diff --git a/plugins/inputs/cloud_pubsub_push/cloud_pubsub_push.go b/plugins/inputs/cloud_pubsub_push/cloud_pubsub_push.go index cb32ea960b1a4..d446d04e991bc 100644 --- a/plugins/inputs/cloud_pubsub_push/cloud_pubsub_push.go +++ b/plugins/inputs/cloud_pubsub_push/cloud_pubsub_push.go @@ -133,7 +133,7 @@ func (p *PubSubPush) Start(acc telegraf.Accumulator) error { return nil } -func (*PubSubPush) Gather(_ telegraf.Accumulator) error { +func (*PubSubPush) Gather(telegraf.Accumulator) error { return nil } diff --git a/plugins/inputs/cloudwatch/cloudwatch_test.go b/plugins/inputs/cloudwatch/cloudwatch_test.go index efb3a78fc876a..602da9b460c5f 100644 --- a/plugins/inputs/cloudwatch/cloudwatch_test.go +++ b/plugins/inputs/cloudwatch/cloudwatch_test.go @@ -308,9 +308,9 @@ func TestGather_MultipleNamespaces(t *testing.T) { type mockSelectMetricsCloudWatchClient struct{} func (*mockSelectMetricsCloudWatchClient) ListMetrics( - _ context.Context, - _ *cloudwatch.ListMetricsInput, - _ ...func(*cloudwatch.Options), + context.Context, + *cloudwatch.ListMetricsInput, + ...func(*cloudwatch.Options), ) (*cloudwatch.ListMetricsOutput, error) { metrics := make([]types.Metric, 0) // 4 metrics are available @@ -359,9 +359,9 @@ func (*mockSelectMetricsCloudWatchClient) ListMetrics( } func (*mockSelectMetricsCloudWatchClient) GetMetricData( - _ context.Context, - _ *cloudwatch.GetMetricDataInput, - _ ...func(*cloudwatch.Options), + context.Context, + *cloudwatch.GetMetricDataInput, + ...func(*cloudwatch.Options), ) (*cloudwatch.GetMetricDataOutput, error) { return nil, nil } diff --git a/plugins/inputs/cloudwatch_metric_streams/cloudwatch_metric_streams.go b/plugins/inputs/cloudwatch_metric_streams/cloudwatch_metric_streams.go index ef04914dca9f9..6e824f50634a1 100644 --- a/plugins/inputs/cloudwatch_metric_streams/cloudwatch_metric_streams.go +++ b/plugins/inputs/cloudwatch_metric_streams/cloudwatch_metric_streams.go @@ -149,7 +149,7 @@ func (cms *CloudWatchMetricStreams) Start(acc telegraf.Accumulator) error { return nil } -func (*CloudWatchMetricStreams) Gather(_ telegraf.Accumulator) error { +func (*CloudWatchMetricStreams) Gather(telegraf.Accumulator) error { return nil } diff --git a/plugins/inputs/ctrlx_datalayer/ctrlx_datalayer.go b/plugins/inputs/ctrlx_datalayer/ctrlx_datalayer.go index f5c200269d1a4..b09cb4398b083 100644 --- a/plugins/inputs/ctrlx_datalayer/ctrlx_datalayer.go +++ b/plugins/inputs/ctrlx_datalayer/ctrlx_datalayer.go @@ -131,7 +131,7 @@ func (c *CtrlXDataLayer) Start(acc telegraf.Accumulator) error { return nil } -func (*CtrlXDataLayer) Gather(_ telegraf.Accumulator) error { +func (*CtrlXDataLayer) Gather(telegraf.Accumulator) error { // Metrics are sent to the accumulator asynchronously in worker thread. So nothing to do here. return nil } diff --git a/plugins/inputs/dcos/creds.go b/plugins/inputs/dcos/creds.go index 7161b61f8522d..8b195bc98ba94 100644 --- a/plugins/inputs/dcos/creds.go +++ b/plugins/inputs/dcos/creds.go @@ -63,7 +63,7 @@ func (*tokenCreds) isExpired() bool { return true } -func (*nullCreds) token(_ context.Context, _ client) (string, error) { +func (*nullCreds) token(context.Context, client) (string, error) { return "", nil } diff --git a/plugins/inputs/elasticsearch/elasticsearch.go b/plugins/inputs/elasticsearch/elasticsearch.go index e2ced038ce0a8..b8f51dbc29502 100644 --- a/plugins/inputs/elasticsearch/elasticsearch.go +++ b/plugins/inputs/elasticsearch/elasticsearch.go @@ -159,7 +159,7 @@ func (e *Elasticsearch) Init() error { return nil } -func (*Elasticsearch) Start(_ telegraf.Accumulator) error { +func (*Elasticsearch) Start(telegraf.Accumulator) error { return nil } diff --git a/plugins/inputs/elasticsearch_query/elasticsearch_query.go b/plugins/inputs/elasticsearch_query/elasticsearch_query.go index a8c1445455b7f..525a9a061d9d7 100644 --- a/plugins/inputs/elasticsearch_query/elasticsearch_query.go +++ b/plugins/inputs/elasticsearch_query/elasticsearch_query.go @@ -89,7 +89,7 @@ func (e *ElasticsearchQuery) Init() error { return nil } -func (*ElasticsearchQuery) Start(_ telegraf.Accumulator) error { +func (*ElasticsearchQuery) Start(telegraf.Accumulator) error { return nil } diff --git a/plugins/inputs/execd/shim/shim_test.go b/plugins/inputs/execd/shim/shim_test.go index 75de4c66f7f09..e3124ea74b353 100644 --- a/plugins/inputs/execd/shim/shim_test.go +++ b/plugins/inputs/execd/shim/shim_test.go @@ -101,7 +101,7 @@ func (i *testInput) Gather(acc telegraf.Accumulator) error { return nil } -func (*testInput) Start(_ telegraf.Accumulator) error { +func (*testInput) Start(telegraf.Accumulator) error { return nil } @@ -149,7 +149,7 @@ func (*serviceInput) Gather(acc telegraf.Accumulator) error { return nil } -func (*serviceInput) Start(_ telegraf.Accumulator) error { +func (*serviceInput) Start(telegraf.Accumulator) error { return nil }