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

Commit

Permalink
fixed linting issues
Browse files Browse the repository at this point in the history
  • Loading branch information
linzhp committed Mar 27, 2020
1 parent c801e21 commit 3c91ab5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mockgen/parse.go
Original file line number Diff line number Diff line change
Expand Up @@ -582,9 +582,9 @@ func parsePackageImport(source, srcDir string) (string, error) {
}
sourceRoot := filepath.Join(goPath, "src") + "/"
if !strings.HasPrefix(srcDir, sourceRoot) {
return "", fmt.Errorf("%s is outside GOPATH %s\n", srcDir, goPath)
return "", fmt.Errorf("%s is outside GOPATH %s", srcDir, goPath)
}
return strings.TrimPrefix(srcDir, sourceRoot), nil
}
return "", fmt.Errorf("Cannot find package path for %s", srcDir)
return "", fmt.Errorf("cannot find package path for %s", srcDir)
}

0 comments on commit 3c91ab5

Please sign in to comment.