From 90955a919b2c8290c7b3fabca476efc8ac86a6e5 Mon Sep 17 00:00:00 2001 From: Evan Lezar Date: Thu, 7 Mar 2024 17:59:16 +0200 Subject: [PATCH] Allow top-level Configure to return an error Signed-off-by: Evan Lezar --- pkg/cdi/default-cache.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/cdi/default-cache.go b/pkg/cdi/default-cache.go index 8b126d8..7886ee5 100644 --- a/pkg/cdi/default-cache.go +++ b/pkg/cdi/default-cache.go @@ -44,12 +44,12 @@ func GetDefaultCache() *Cache { // Configure applies options to the default CDI cache. Updates and refreshes // the default cache if options are not empty. -func Configure(options ...Option) { +func Configure(options ...Option) error { cache, created := getOrCreateDefaultCache(options...) if len(options) == 0 || created { - return + return nil } - cache.Configure(options...) + return cache.Configure(options...) } // Refresh explicitly refreshes the default CDI cache instance.