Skip to content

Commit 15e167f

Browse files
committed
rename var to avoid implicit context shadow
1 parent b4ad1bf commit 15e167f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

third_party/vcluster/vcluster.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,11 +91,11 @@ func WithHostKubeConfig(kubeconfig string) support.ClusterOpts {
9191
}
9292
}
9393

94-
func WithHostKubeContext(context string) support.ClusterOpts {
94+
func WithHostKubeContext(kubeContext string) support.ClusterOpts {
9595
return func(c support.E2EClusterProvider) {
9696
v, ok := c.(*Cluster)
9797
if ok {
98-
v.hostKubeContext = context
98+
v.hostKubeContext = kubeContext
9999
}
100100
}
101101
}

0 commit comments

Comments
 (0)