fix nil ptr
This commit is contained in:
parent
5f52a995a7
commit
77944ba3af
1 changed files with 1 additions and 1 deletions
|
@ -81,7 +81,7 @@ func sendToSlack(channel, username, message string) error {
|
|||
log.Debugln("slack: " + channel + ": " + message)
|
||||
for {
|
||||
_, _, err = slackApi.PostMessage(channel, slack.MsgOptionText(message, false), slack.MsgOptionUsername(username))
|
||||
if strings.Contains(err.Error(), "timeout awaiting response headers") {
|
||||
if err != nil && strings.Contains(err.Error(), "timeout awaiting response headers") {
|
||||
continue
|
||||
}
|
||||
break
|
||||
|
|
Loading…
Reference in a new issue