Skip to content

Commit 7d8f55d

Browse files
author
Daniel
committed
notify-mailer: fix off-by-one in printStatus args
1 parent 1563419 commit 7d8f55d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/notify-mailer/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ func (m *mailer) run() error {
110110
startTime := m.clk.Now()
111111

112112
for i, dest := range destinations {
113-
m.printStatus(dest, i, len(destinations), startTime)
113+
m.printStatus(dest, i, len(destinations)-1, startTime)
114114
if strings.TrimSpace(dest) == "" {
115115
continue
116116
}

0 commit comments

Comments
 (0)