Plugins: Remove redundant dupe checker (#71564)

remove useless dupe checker
This commit is contained in:
Will Browne 2023-07-14 10:24:59 +02:00 committed by GitHub
parent 16e5d442ba
commit 9e999b455b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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
}