From 103a491ac044b7a93d652a4b34fe14aefd6f5267 Mon Sep 17 00:00:00 2001 From: Pauline Middelink Date: Thu, 11 May 2017 22:38:12 +0200 Subject: [PATCH] Make houndci-bot happy. --- src/restic/snapshot_filter.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/restic/snapshot_filter.go b/src/restic/snapshot_filter.go index f56334428..5461f18ff 100644 --- a/src/restic/snapshot_filter.go +++ b/src/restic/snapshot_filter.go @@ -112,12 +112,12 @@ func ApplyPolicy(list Snapshots, p ExpirePolicy) (keep, remove Snapshots) { } for _, cur := range list { - var keep_snap bool + var keepSnap bool // Tags are handled specially as they are not counted. if len(p.Tags) > 0 { if cur.HasTags(p.Tags) { - keep_snap = true + keepSnap = true } } // Now update the other buckets and see if they have some counts left. @@ -125,14 +125,14 @@ func ApplyPolicy(list Snapshots, p ExpirePolicy) (keep, remove Snapshots) { if b.Count > 0 { val := b.bucker(cur.Time) if val != b.Last { - keep_snap = true + keepSnap = true buckets[i].Last = val buckets[i].Count-- } } } - if keep_snap { + if keepSnap { keep = append(keep, cur) } else { remove = append(remove, cur)