1
0
mirror of https://github.com/go-micro/go-micro.git synced 2025-06-24 22:26:54 +02:00

fix: some linting issues (#2563)

This commit is contained in:
David Brouwer
2022-09-30 16:27:07 +02:00
committed by GitHub
parent 47e6a8d725
commit 85c0b0b8eb
221 changed files with 1025 additions and 1283 deletions

View File

@ -165,7 +165,7 @@ func dirifyRepo(s string) string {
return s
}
// exists returns whether the given file or directory exists
// exists returns whether the given file or directory exists.
func pathExists(path string) (bool, error) {
_, err := os.Stat(path)
if err == nil {
@ -178,7 +178,7 @@ func pathExists(path string) (bool, error) {
}
// GetRepoRoot determines the repo root from a full path.
// Returns empty string and no error if not found
// Returns empty string and no error if not found.
func GetRepoRoot(fullPath string) (string, error) {
// traverse parent directories
prev := fullPath
@ -203,7 +203,7 @@ func GetRepoRoot(fullPath string) (string, error) {
const defaultRepo = "github.com/micro/services"
// Source is not just git related @todo move
// Source is not just git related @todo move.
type Source struct {
// is it a local folder intended for a local runtime?
Local bool