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:
parent
d8f2b47432
commit
7b85ed613d
1 changed files with 0 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue