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:
@ -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
|
||||
|
Reference in New Issue
Block a user