notify-mailer: fix off-by-one in printStatus args

This commit is contained in:
Daniel 2019-01-15 16:25:37 -05:00
parent 1563419cfb
commit 7d8f55d64c
1 changed files with 1 additions and 1 deletions

View File

@ -110,7 +110,7 @@ func (m *mailer) run() error {
startTime := m.clk.Now()
for i, dest := range destinations {
m.printStatus(dest, i, len(destinations), startTime)
m.printStatus(dest, i, len(destinations)-1, startTime)
if strings.TrimSpace(dest) == "" {
continue
}