From 7a17f9506a52c07356ae4efb34b1fa1f788cd003 Mon Sep 17 00:00:00 2001 From: Corey Johnson Date: Wed, 20 Nov 2019 15:59:45 -0800 Subject: [PATCH] Remove bang Co-Authored-By: Josh Abernathy --- main.go | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/main.go b/main.go index 6dc1023cc..558c81cc7 100644 --- a/main.go +++ b/main.go @@ -9,10 +9,8 @@ import ( ) func main() { - handleUpdate := make(chan func()) - go command.CheckForUpdate(handleUpdate) - - fmt.Printf("🌭 %+v\n", "bang") + printUpdateMessage := make(chan func()) + go command.CheckForUpdate(printUpdateMessage) if cmd, err := command.RootCmd.ExecuteC(); err != nil { fmt.Fprintln(os.Stderr, err) @@ -23,5 +21,5 @@ func main() { os.Exit(1) } - (<-handleUpdate)() + (<-printUpdateMessage)() }