Skip to content

Commit 427a76d

Browse files
committed
Use the same words
1 parent 2c86c1d commit 427a76d

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

main.go

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ import (
1010
)
1111

1212
func 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
}

0 commit comments

Comments
 (0)