firehol/netdata

View on GitHub
src/go/plugin/go.d/modules/tor/client.go

Summary

Maintainability
A
40 mins
Test Coverage

Method torControlClient.getInfo has 6 return statements (exceeds 4 allowed).
Open

func (c *torControlClient) getInfo(keywords ...string) ([]byte, error) {
    // https://spec.torproject.org/control-spec/commands.html#getinfo

    if len(keywords) == 0 {
        return nil, errors.New("no keywords specified")
Severity: Major
Found in src/go/plugin/go.d/modules/tor/client.go - About 40 mins to fix

    There are no issues that match your filters.

    Category
    Status