Skip to content

Commit 695072d

Browse files
nil return check fix
Signed-off-by: James Milligan <[email protected]>
1 parent 8c0fa65 commit 695072d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

webhooks/pod_webhook.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ func (m *PodMutator) Handle(ctx context.Context, req admission.Request) admissio
156156
return admission.Errored(http.StatusBadRequest, err)
157157
}
158158
fc := m.getFlagSourceConfiguration(ctx, name, ns)
159-
if reflect.DeepEqual(fc, corev1alpha1.FeatureFlagConfiguration{}) {
159+
if reflect.DeepEqual(fc, corev1alpha1.FlagSourceConfiguration{}) {
160160
m.Log.V(1).Info(fmt.Sprintf("FlagSourceConfiguration could not be found for %s", fcName))
161161
return admission.Errored(http.StatusBadRequest, err)
162162
}

0 commit comments

Comments
 (0)