src/go/plugin/go.d/modules/smartctl/exec.go
Method smartctlCliExec.execute
has 6 return statements (exceeds 4 allowed). Open
Open
func (e *smartctlCliExec) execute(args ...string) (*gjson.Result, error) {
ctx, cancel := context.WithTimeout(context.Background(), e.timeout)
defer cancel()
cmd := exec.CommandContext(ctx, e.ndsudoPath, args...)