Plugins: Remove redundant dupe checker (#71564)

remove useless dupe checker
pull/71631/head
Will Browne 2 years ago committed by GitHub
parent 16e5d442ba
commit 9e999b455b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      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
}

Loading…
Cancel
Save