mirror of
https://github.com/spf13/cobra
synced 2024-11-24 22:57:12 +00:00
Making buildPath arg more descriptive
This commit is contained in:
parent
02a0b7db0c
commit
7e288525f0
1 changed files with 3 additions and 3 deletions
|
@ -352,9 +352,9 @@ func commentifyString(in string) string {
|
||||||
return strings.Join(newlines, "\n")
|
return strings.Join(newlines, "\n")
|
||||||
}
|
}
|
||||||
|
|
||||||
func buildPath(parts []string, end int) string {
|
func buildPath(parts []string, endIndex int) string {
|
||||||
if end > -1 {
|
if endIndex > -1 {
|
||||||
return filepath.Join(buildPath(parts, end - 1), parts[end])
|
return filepath.Join(buildPath(parts, endIndex - 1), parts[endIndex])
|
||||||
}
|
}
|
||||||
return ""
|
return ""
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue