From 6d07707ace18f539ff860103b4fd625a46093c07 Mon Sep 17 00:00:00 2001 From: Peter Sanford Date: Thu, 12 Mar 2020 13:37:20 -0700 Subject: [PATCH] Fix reading text from prompt We were accidentally shadowing the msg variable. --- cmd/send.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/cmd/send.go b/cmd/send.go index 8cfea236..52e937a0 100644 --- a/cmd/send.go +++ b/cmd/send.go @@ -210,8 +210,7 @@ func sendText() { } else { reader := bufio.NewReader(os.Stdin) fmt.Print("Text to send: ") - msg, _ := reader.ReadString('\n') - + msg, _ = reader.ReadString('\n') msg = strings.TrimSpace(msg) }