Skip to content

Commit

Permalink
get rid of some more underscores
Browse files Browse the repository at this point in the history
  • Loading branch information
zak-pawel committed Dec 11, 2024
1 parent 1c02371 commit 924242d
Show file tree
Hide file tree
Showing 10 changed files with 16 additions and 16 deletions.
2 changes: 1 addition & 1 deletion plugins/inputs/cisco_telemetry_mdt/cisco_telemetry_mdt.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down
2 changes: 1 addition & 1 deletion plugins/inputs/cloud_pubsub/cloud_pubsub.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down
2 changes: 1 addition & 1 deletion plugins/inputs/cloud_pubsub_push/cloud_pubsub_push.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down
12 changes: 6 additions & 6 deletions plugins/inputs/cloudwatch/cloudwatch_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down
2 changes: 1 addition & 1 deletion plugins/inputs/ctrlx_datalayer/ctrlx_datalayer.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down
2 changes: 1 addition & 1 deletion plugins/inputs/dcos/creds.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down
2 changes: 1 addition & 1 deletion plugins/inputs/elasticsearch/elasticsearch.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down
2 changes: 1 addition & 1 deletion plugins/inputs/elasticsearch_query/elasticsearch_query.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down
4 changes: 2 additions & 2 deletions plugins/inputs/execd/shim/shim_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down Expand Up @@ -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
}

Expand Down

0 comments on commit 924242d

Please sign in to comment.