otiai10/gosseract

View on GitHub

Showing 2 of 2 total issues

Method Client.SetImage has 5 return statements (exceeds 4 allowed).
Open

func (client *Client) SetImage(imagepath string) error {

    if client.api == nil {
        return ErrClientNotConstructed
    }
Severity: Major
Found in client.go - About 35 mins to fix

    Method Client.init has 5 return statements (exceeds 4 allowed).
    Open

    func (client *Client) init() error {
    
        if !client.shouldInit {
            C.SetPixImage(client.api, client.pixImage)
            return nil
    Severity: Major
    Found in client.go - About 35 mins to fix
      Severity
      Category
      Status
      Source
      Language