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:
parent
761af08889
commit
2d73a273af
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user