fix slack arg index

This commit is contained in:
c9s 2020-08-03 20:08:14 +08:00
parent 9d50f49989
commit aef57a5ae4

View File

@ -51,7 +51,7 @@ func (t *SlackNotifier) Notify(format string, args ...interface{}) {
}
var nonSlackArgs = args
if slackArgsStartIdx > 0 {
if slackArgsStartIdx > -1 {
nonSlackArgs = args[:slackArgsStartIdx]
}