From 7e288525f01b5a4b2eb158a279954a84f14fcbc2 Mon Sep 17 00:00:00 2001 From: Ian Walter Date: Tue, 3 May 2016 22:16:18 -0400 Subject: [PATCH] Making buildPath arg more descriptive --- cobra/cmd/helpers.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cobra/cmd/helpers.go b/cobra/cmd/helpers.go index 9d025c58..d2d0bb18 100644 --- a/cobra/cmd/helpers.go +++ b/cobra/cmd/helpers.go @@ -352,9 +352,9 @@ func commentifyString(in string) string { return strings.Join(newlines, "\n") } -func buildPath(parts []string, end int) string { - if end > -1 { - return filepath.Join(buildPath(parts, end - 1), parts[end]) +func buildPath(parts []string, endIndex int) string { + if endIndex > -1 { + return filepath.Join(buildPath(parts, endIndex - 1), parts[endIndex]) } return "" }