mirror of
https://github.com/restic/restic.git
synced 2025-03-09 00:00:02 +01:00
saving a variable
This commit is contained in:
parent
761af08889
commit
2d73a273af
1 changed files with 1 additions and 2 deletions
|
@ -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…
Add table
Reference in a new issue