Skip to content

Commit 7f899c3

Browse files
authored
Merge pull request #772 from mcristina422/patch-1
🏃 Remove unused variable from IsConvertible
2 parents 9c9f664 + a9427a1 commit 7f899c3

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

pkg/webhook/conversion/conversion.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -264,10 +264,6 @@ func IsConvertible(scheme *runtime.Scheme, obj runtime.Object) (bool, error) {
264264
}
265265

266266
if len(hubs) == 1 && len(nonSpokes) == 0 { // convertible
267-
spokeVersions := []string{}
268-
for _, sp := range spokes {
269-
spokeVersions = append(spokeVersions, sp.GetObjectKind().GroupVersionKind().String())
270-
}
271267
return true, nil
272268
}
273269

0 commit comments

Comments
 (0)