daemon/metrics.go
Function makePluginAdapter
has 5 return statements (exceeds 4 allowed). Open
Open
func makePluginAdapter(p plugingetter.CompatPlugin) (metricsPlugin, error) {
if pc, ok := p.(plugingetter.PluginWithV1Client); ok {
return &metricsPluginAdapter{pc.Client(), p.Name()}, nil
}