some lint fixes

This commit is contained in:
ston1th 2021-11-05 22:10:52 +01:00
commit 9f4fda3c8b
11 changed files with 36 additions and 40 deletions

View file

@ -38,7 +38,7 @@ type Tesseract struct {
var (
wsr = regexp.MustCompile(`[\t\f ]+`)
nlr = regexp.MustCompile(`[\n]{3,}`)
nlr = regexp.MustCompile(`\n{3,}`)
ws = []byte(" ")
nl = []byte("\n")
)
@ -50,7 +50,7 @@ type Scanner struct {
p PDF
}
func New(c core.Config) (s *Scanner, err error) {
func New(c *core.Config) (s *Scanner, err error) {
var (
tcmd string
pcmd string