Skip to content

Commit

Permalink
r - nil slice declaration
Browse files Browse the repository at this point in the history
  • Loading branch information
brianberzins committed Apr 25, 2022
1 parent 843f715 commit 298ed1a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion reaper/reaper.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ func (reaper reaper) getPods() *v1.PodList {
}

func filter(podList *v1.PodList, reaper reaper) *v1.PodList {
filteredList := []v1.Pod{}
var filteredList []v1.Pod
for _, pod := range podList.Items {
selector := labels.Set(pod.Annotations)
if reaper.options.annotationRequirement.Matches(selector) {
Expand Down

0 comments on commit 298ed1a

Please sign in to comment.