Skip to content
This repository was archived by the owner on Aug 12, 2025. It is now read-only.

Commit 4cdd303

Browse files
committed
chore: remove unused code
Signed-off-by: Chris Privitere <[email protected]>
1 parent d0fac5c commit 4cdd303

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

api/v1beta1/packetmachine_webhook.go

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -42,15 +42,6 @@ func (m *PacketMachine) SetupWebhookWithManager(mgr ctrl.Manager) error {
4242
// ValidateCreate implements webhook.Validator so a webhook will be registered for the type.
4343
func (m *PacketMachine) ValidateCreate() error {
4444
machineLog.Info("validate create", "name", m.Name)
45-
allErrs := field.ErrorList{}
46-
47-
// If both Metro and Facility are set, ignore Facility, we'll leave this to
48-
// the controller to deal with - the facility will need to reside in the
49-
// metro.
50-
51-
if len(allErrs) > 0 {
52-
return apierrors.NewInvalid(GroupVersion.WithKind("PacketMachine").GroupKind(), m.Name, allErrs)
53-
}
5445

5546
return nil
5647
}

0 commit comments

Comments
 (0)