Files
kubernetes/pkg
Kubernetes Submit Queue 08342c1f3e Merge pull request #38825 from enj/enj/i/store_dead_code/38822
Automatic merge from submit-queue

Remove dead code in `pkg/registry/generic/registry/store.go`

Fixes #38822

Depending on the intent of the original code, the correct fix may instead be:

```go
if name, ok := p.MatchesSingle(); ok {
	key, err := e.KeyFunc(ctx, name)
	if err != nil {
		return nil, err
	}
	w, err := e.Storage.Watch(ctx, key, resourceVersion, p)
	if err != nil {
		return nil, err
	}
	if e.Decorator != nil {
		return newDecoratedWatcher(w, e.Decorator), nil
	}
	return w, nil
	// if we cannot extract a key based on the current context, the optimization is skipped
}
```

Signed-off-by: Monis Khan <mkhan@redhat.com>

cc @deads2k
2016-12-16 06:31:12 -08:00
..
2016-12-15 14:20:26 -08:00
2016-12-15 09:18:48 -05:00
2016-12-12 13:30:07 -08:00
2016-12-15 18:36:22 -08:00
2016-12-12 13:30:07 -08:00
2016-12-12 13:30:07 -08:00
2016-12-14 12:39:48 -08:00
2016-12-12 13:30:07 -08:00
2016-12-12 13:30:07 -08:00
2016-12-12 13:30:07 -08:00
2016-12-12 13:30:07 -08:00
2016-12-14 12:39:49 -08:00
2016-12-12 13:30:07 -08:00
2016-12-14 12:39:48 -08:00
2016-12-12 13:30:07 -08:00
2016-12-14 12:39:48 -08:00
2016-12-15 13:37:35 -05:00
2016-12-12 13:30:07 -08:00
2016-12-12 13:30:07 -08:00
2016-12-12 13:30:07 -08:00
2016-12-12 13:30:07 -08:00
2016-12-12 13:30:07 -08:00
2016-12-12 13:30:07 -08:00
2016-12-15 18:36:22 -08:00
2016-12-14 12:39:48 -08:00
2016-12-12 13:30:07 -08:00