File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed
Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -10,8 +10,8 @@ import (
1010)
1111
1212func main () {
13- alertMsgChan := make (chan * string )
14- go updateInBackground (alertMsgChan )
13+ updateMessageChan := make (chan * string )
14+ go updateInBackground (updateMessageChan )
1515
1616 if cmd , err := command .RootCmd .ExecuteC (); err != nil {
1717 fmt .Fprintln (os .Stderr , err )
@@ -22,18 +22,18 @@ func main() {
2222 os .Exit (1 )
2323 }
2424
25- alertMsg := <- alertMsgChan
26- if alertMsg != nil {
27- fmt .Fprintf (os .Stderr , * alertMsg )
25+ updateMessage := <- updateMessageChan
26+ if updateMessage != nil {
27+ fmt .Fprintf (os .Stderr , * updateMessage )
2828 }
2929}
3030
31- func updateInBackground (alertMsgChan chan * string ) {
31+ func updateInBackground (updateMessageChan chan * string ) {
3232 client , err := command .BasicClient ()
3333 if err != nil {
34- alertMsgChan <- nil
34+ updateMessageChan <- nil
3535 return
3636 }
3737
38- alertMsgChan <- update .UpdateMessage (client )
38+ updateMessageChan <- update .UpdateMessage (client )
3939}
You can’t perform that action at this time.
0 commit comments