Skip to content

Commit

Permalink
Fix reading text from prompt
Browse files Browse the repository at this point in the history
We were accidentally shadowing the msg variable.
  • Loading branch information
psanford committed Mar 12, 2020
1 parent 6c3a684 commit 6d07707
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions cmd/send.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

Expand Down

0 comments on commit 6d07707

Please sign in to comment.