Skip to content

Commit 82780db

Browse files
committed
fix the lint
Signed-off-by: Zhiying Lin <[email protected]>
1 parent 4ae58cf commit 82780db

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/controllers/membercluster/v1beta1/membercluster_controller.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -515,7 +515,7 @@ func (r *Reconciler) syncInternalMemberClusterStatus(imc *clusterv1beta1.Interna
515515
}
516516

517517
// TODO: We didn't handle condition type: clusterv1beta1.ConditionTypeMemberClusterHealthy.
518-
var latestAgentStatus []clusterv1beta1.AgentStatus
518+
latestAgentStatus := make([]clusterv1beta1.AgentStatus, 0, len(imc.Status.AgentStatus))
519519
var memberAgentStatusUpdated bool
520520
for i := range imc.Status.AgentStatus {
521521
if imc.Status.AgentStatus[i].Conditions == nil {

0 commit comments

Comments
 (0)