Commit e50caac6 authored by Joan Piles's avatar Joan Piles

Fix off-by-one bug

parent 9d421b23
......@@ -159,7 +159,7 @@ func subcmdRun() (ferr error) {
last := len(obsolete) - 1
obsolete[last].purge()
// We remove it from the list, it's quicker than recalculating the list.
obsolete = obsolete[:(last - 1)]
obsolete = obsolete[:last]
}
}
}()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment