Skip to content
This repository was archived by the owner on Jun 27, 2023. It is now read-only.

Commit 3c91ab5

Browse files
committed
fixed linting issues
1 parent c801e21 commit 3c91ab5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mockgen/parse.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -582,9 +582,9 @@ func parsePackageImport(source, srcDir string) (string, error) {
582582
}
583583
sourceRoot := filepath.Join(goPath, "src") + "/"
584584
if !strings.HasPrefix(srcDir, sourceRoot) {
585-
return "", fmt.Errorf("%s is outside GOPATH %s\n", srcDir, goPath)
585+
return "", fmt.Errorf("%s is outside GOPATH %s", srcDir, goPath)
586586
}
587587
return strings.TrimPrefix(srcDir, sourceRoot), nil
588588
}
589-
return "", fmt.Errorf("Cannot find package path for %s", srcDir)
589+
return "", fmt.Errorf("cannot find package path for %s", srcDir)
590590
}

0 commit comments

Comments
 (0)