Skip to content

Commit

Permalink
chore: Use literal syntax to declare zero-length arrays
Browse files Browse the repository at this point in the history
  • Loading branch information
dlipovetsky authored and dkoshkin committed Sep 8, 2023
1 parent 72f0358 commit 30424f6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ func (r *ClusterResourceSetReconciler) getClustersByClusterResourceSetSelector(c
return nil, errors.Wrap(err, "failed to list clusters")
}

clusters := make([]*clusterv1.Cluster, 0)
clusters := []*clusterv1.Cluster{}
for i := range clusterList.Items {
c := &clusterList.Items[i]
if c.DeletionTimestamp.IsZero() {
Expand Down

0 comments on commit 30424f6

Please sign in to comment.