From ba6a3383856a96eb22c07864e2bc0280cb3c5c09 Mon Sep 17 00:00:00 2001 From: Evan Lezar Date: Mon, 19 Feb 2024 14:55:31 +0100 Subject: [PATCH] Fix conditional for CDI manager Signed-off-by: Evan Lezar --- internal/plugin/manager/factory.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/plugin/manager/factory.go b/internal/plugin/manager/factory.go index 32a8c171b..d0f704b3f 100644 --- a/internal/plugin/manager/factory.go +++ b/internal/plugin/manager/factory.go @@ -49,7 +49,7 @@ func New(opts ...Option) (Interface, error) { return &null{}, nil } - if m.cdiHandler != nil { + if m.cdiHandler == nil { m.cdiHandler = cdi.NewNullHandler() }