Skip to content

Commit

Permalink
Fix unneccesary copied variables
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathan-innis committed Aug 21, 2024
1 parent 446dc7e commit b0f680c
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
1 change: 0 additions & 1 deletion pkg/providers/instancetype/suite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2495,7 +2495,6 @@ func generateSpotPricing(cp *cloudprovider.CloudProvider, nodePool *karpv1.NodeP
}
}
for _, o := range instanceType.Offerings {
o := o
if o.Requirements.Get(karpv1.CapacityTypeLabelKey).Any() != karpv1.CapacityTypeSpot {
continue
}
Expand Down
2 changes: 0 additions & 2 deletions test/pkg/environment/common/monitor.go
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,6 @@ func (m *Monitor) DeletedNodes() []*corev1.Node {
func (m *Monitor) PendingPods(selector labels.Selector) []*corev1.Pod {
var pods []*corev1.Pod
for _, pod := range m.poll().pods.Items {
pod := pod
if pod.Status.Phase != corev1.PodPending {
continue
}
Expand All @@ -152,7 +151,6 @@ func (m *Monitor) PendingPodsCount(selector labels.Selector) int {
func (m *Monitor) RunningPods(selector labels.Selector) []*corev1.Pod {
var pods []*corev1.Pod
for _, pod := range m.poll().pods.Items {
pod := pod
if pod.Status.Phase != corev1.PodRunning {
continue
}
Expand Down

0 comments on commit b0f680c

Please sign in to comment.