From 9e999b455b79b3edb525f14547c7dad987d2a208 Mon Sep 17 00:00:00 2001 From: Will Browne Date: Fri, 14 Jul 2023 10:24:59 +0200 Subject: [PATCH] Plugins: Remove redundant dupe checker (#71564) remove useless dupe checker --- pkg/plugins/manager/loader/finder/local.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/pkg/plugins/manager/loader/finder/local.go b/pkg/plugins/manager/loader/finder/local.go index a2734c7adcb..1712d96f773 100644 --- a/pkg/plugins/manager/loader/finder/local.go +++ b/pkg/plugins/manager/loader/finder/local.go @@ -79,10 +79,6 @@ func (l *Local) Find(ctx context.Context, src plugins.PluginSource) ([]*plugins. continue } - if _, dupe := foundPlugins[filepath.Dir(pluginJSONAbsPath)]; dupe { - l.log.Warn("Skipping plugin loading as it's a duplicate", "pluginID", plugin.ID) - continue - } foundPlugins[filepath.Dir(pluginJSONAbsPath)] = plugin }