src/go/plugin/go.d/modules/apcupsd/client.go
Method apcupsdClient.receive
has 5 return statements (exceeds 4 allowed). Open
Open
func (c *apcupsdClient) receive() ([]byte, error) {
// https://github.com/therealbstern/apcupsd/blob/224d19d5faa508d04267f6135fe53d50800550de/src/apcnis.c#L54
var buf bytes.Buffer
msgLength := make([]byte, 2)