2
2
mirror of https://github.com/octoleo/restic.git synced 2024-11-25 14:17:42 +00:00

saving a variable

This commit is contained in:
Tobias Klein 2017-09-03 17:06:41 +02:00
parent 761af08889
commit 2d73a273af

View File

@ -90,8 +90,7 @@ func ApplyPolicy(list Snapshots, p ExpirePolicy) (keep, remove Snapshots) {
{p.Yearly, y, -1},
}
var nr int
for _, cur := range list {
for nr, cur := range list {
nr = nr + 1
var keepSnap bool