mirror of
https://github.com/octoleo/restic.git
synced 2024-11-29 08:14:03 +00:00
saving a variable
This commit is contained in:
parent
761af08889
commit
2d73a273af
@ -90,8 +90,7 @@ func ApplyPolicy(list Snapshots, p ExpirePolicy) (keep, remove Snapshots) {
|
|||||||
{p.Yearly, y, -1},
|
{p.Yearly, y, -1},
|
||||||
}
|
}
|
||||||
|
|
||||||
var nr int
|
for nr, cur := range list {
|
||||||
for _, cur := range list {
|
|
||||||
nr = nr + 1
|
nr = nr + 1
|
||||||
var keepSnap bool
|
var keepSnap bool
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user