Skip to content

Commit

Permalink
add todo on var := var
Browse files Browse the repository at this point in the history
Signed-off-by: Francesco Ilario <[email protected]>
  • Loading branch information
filariow committed Apr 8, 2024
1 parent 30c01c2 commit 207c3e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/cluster/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ func ListToolchainClusterConfigs(cl client.Client, namespace string, timeout tim
}
var configs []*Config
for _, cluster := range toolchainClusters.Items {
cluster := cluster
cluster := cluster // TODO We won't need it after upgrading to go 1.22: https://go.dev/blog/loopvar-preview
clusterConfig, err := NewClusterConfig(cl, &cluster, timeout)
if err != nil {
return nil, err
Expand Down

0 comments on commit 207c3e3

Please sign in to comment.