Showing 2 of 2 total issues
Method client.do
has 7 return statements (exceeds 4 allowed). Open
Open
func (c *client) do(ctx context.Context, req *request) error {
resp, err := c.httpClient.Do(req.req)
if err != nil {
return fmt.Errorf("failed to send request: %w", err)
}
Function ParsePublicKey
has 5 return statements (exceeds 4 allowed). Open
Open
func ParsePublicKey(pub []byte) (*rsa.PublicKey, error) {
pubPem, _ := pem.Decode(pub)
if pubPem == nil {
return nil, ErrFailedToDecodeKey
}