src/go/plugin/go.d/modules/boinc/client.go
Method boincClient.send
has 11 return statements (exceeds 4 allowed). Open
Open
func (c *boincClient) send(req *boincRequest) (*boincReply, error) {
reqData, err := xml.Marshal(req)
if err != nil {
return nil, fmt.Errorf("failed to marshal request: %v", err)
}
Method boincClient.authenticate
has 5 return statements (exceeds 4 allowed). Open
Open
func (c *boincClient) authenticate() error {
// https://boinc.berkeley.edu/trac/wiki/GuiRpcProtocol#Authentication
req := &boincRequest{
Auth1: &struct{}{},