src/go/plugin/go.d/modules/upsd/client.go
Method upsdClient.authenticate
has 5 return statements (exceeds 4 allowed). Open
Open
func (c *upsdClient) authenticate(username, password string) error {
cmd := fmt.Sprintf(commandUsername, username)
resp, err := c.sendCommand(cmd)
if err != nil {
return err