From 4773d6f74f9e31db4783dd99624a55947b21b58d Mon Sep 17 00:00:00 2001 From: Nick White Date: Tue, 20 Jul 2021 11:36:35 +0100 Subject: Cleanup thanks to go vet --- cmd/rescribe/main.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'cmd/rescribe/main.go') diff --git a/cmd/rescribe/main.go b/cmd/rescribe/main.go index db8eb41..251c333 100644 --- a/cmd/rescribe/main.go +++ b/cmd/rescribe/main.go @@ -228,7 +228,7 @@ These training files are included in rescribe, and are always available: abstraining, err := filepath.Abs(trainingPath) if err != nil { - log.Fatalf("Error getting absolute path of training %s: %v", err) + log.Fatalf("Error getting absolute path of training %s: %v", trainingPath, err) } tessPrefix, trainingName := filepath.Split(abstraining) trainingName = strings.TrimSuffix(trainingName, ".traineddata") @@ -499,6 +499,4 @@ func processbook(training string, tesscmd string, conn Pipeliner) error { return nil } } - - return fmt.Errorf("Ended unexpectedly") // should never be reached } -- cgit v1.2.1-24-ge1ad