plugin/setupNewPlugin: rm dead code

> plugin/manager_linux.go:285:9: nilness: impossible condition: nil != nil (govet)
>	if err != nil {
>	       ^

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
This commit is contained in:
Kir Kolyshkin 2019-08-05 19:29:23 -07:00 committed by Sebastiaan van Stijn
parent d8f2b47432
commit 7b85ed613d
No known key found for this signature in database
GPG key ID: 76698F39D527CE8C

View file

@ -282,9 +282,6 @@ func (pm *Manager) setupNewPlugin(configDigest digest.Digest, blobsums []digest.
}
requiredPrivileges := computePrivileges(config)
if err != nil {
return types.PluginConfig{}, err
}
if privileges != nil {
if err := validatePrivileges(requiredPrivileges, *privileges); err != nil {
return types.PluginConfig{}, err