Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(linters): Fix remaining errcheck warnings #15518

Merged
merged 13 commits into from
Jul 10, 2024
Prev Previous commit
Next Next commit
Update plugins/inputs/amd_rocm_smi/amd_rocm_smi.go
Co-authored-by: Joshua Powers <powersj@fastmail.com>
  • Loading branch information
DStrand1 and powersj authored Jun 27, 2024
commit 0f2725e0a47f799fee3ab094cee69d552a1f5386
2 changes: 1 addition & 1 deletion plugins/inputs/amd_rocm_smi/amd_rocm_smi.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ func (*ROCmSMI) SampleConfig() string {
func (rsmi *ROCmSMI) Gather(acc telegraf.Accumulator) error {
data, err := rsmi.pollROCmSMI()
if err != nil {
return fmt.Errorf("failed to execute command in pollROCmSMI: %v", err)
return fmt.Errorf("failed to execute command in pollROCmSMI: %w", err)
}

return gatherROCmSMI(data, acc)
Expand Down
Loading