firehol/netdata

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

Summary

Maintainability
A
35 mins
Test Coverage

Method upsdClient.authenticate has 5 return statements (exceeds 4 allowed).
Open

func (c *upsdClient) authenticate(username, password string) error {
    cmd := fmt.Sprintf(commandUsername, username)
    resp, err := c.sendCommand(cmd)
    if err != nil {
        return err
Severity: Major
Found in src/go/plugin/go.d/modules/upsd/client.go - About 35 mins to fix

    There are no issues that match your filters.

    Category
    Status