Remove unnecessary argument
Jes Olson jolson@digitalocean.com
Wed, 24 Nov 2021 14:33:29 -0600
1 files changed,
2 insertions(+),
2 deletions(-)
jump to
M
bin/prompt.go
→
bin/prompt.go
@@ -11,7 +11,7 @@ )
// getRepoRoot returns the full path to the root // of the closest git dir -func getRepoRoot(pwd string) string { +func getRepoRoot() string { var rootPath string path, err := exec.Command("git", "rev-parse", "--show-toplevel").Output()@@ -41,7 +41,7 @@ now := time.Now().Format("15:04:05")
emoji := resolveEmoji(host) fmt.Printf("%s %s ", now, emoji) - gitRoot := getRepoRoot(cwd) + gitRoot := getRepoRoot() var prefix string if gitRoot == home {