From 1c17766952bdcd6f7d31d0fa1a2e504b1aa4f14a Mon Sep 17 00:00:00 2001 From: Nick White Date: Thu, 24 Jan 2019 19:11:04 +0000 Subject: Fix bug: if non-prob/hocr file was encountered a dupe old line could be processed --- bucket-lines/bucket-lines.go | 1 + 1 file changed, 1 insertion(+) (limited to 'bucket-lines') diff --git a/bucket-lines/bucket-lines.go b/bucket-lines/bucket-lines.go index e4e5a4d..ee81721 100644 --- a/bucket-lines/bucket-lines.go +++ b/bucket-lines/bucket-lines.go @@ -67,6 +67,7 @@ func main() { newlines, err = hocr.GetLineDetails(f) default: log.Printf("Skipping file '%s' as it isn't a .prob or .hocr\n", f) + continue } if err != nil { log.Fatal(err) -- cgit v1.2.1-24-ge1ad