volume/drivers/extpoint.go
Method Store.lookup
has 7 return statements (exceeds 4 allowed). Open
Open
func (s *Store) lookup(name string, mode int) (volume.Driver, error) {
if name == "" {
return nil, errdefs.InvalidParameter(errors.New("driver name cannot be empty"))
}
s.driverLock.Lock(name)
Function makePluginAdapter
has 5 return statements (exceeds 4 allowed). Open
Open
func makePluginAdapter(p plugingetter.CompatPlugin) (*volumeDriverAdapter, error) {
if pc, ok := p.(plugingetter.PluginWithV1Client); ok {
return &volumeDriverAdapter{name: p.Name(), scopePath: p.ScopedPath, proxy: &volumeDriverProxy{pc.Client()}}, nil
}