Remove redundant code in generateSpec()
Conditional expression duplicates the code above, therefore, remove it Found by Linux Verification Center (linuxtesting.org) with SVACE. [NO NEW TESTS NEEDED] Signed-off-by: Egor Makrushin <emakrushin@astralinux.ru>
This commit is contained in:
parent
475dff6a06
commit
380fa1c836
|
|
@ -607,9 +607,6 @@ func (c *Container) generateSpec(ctx context.Context) (s *spec.Spec, cleanupFunc
|
|||
if err != nil {
|
||||
return nil, nil, err
|
||||
}
|
||||
if err != nil {
|
||||
return nil, nil, err
|
||||
}
|
||||
for name, secr := range c.config.EnvSecrets {
|
||||
_, data, err := manager.LookupSecretData(secr.Name)
|
||||
if err != nil {
|
||||
|
|
|
|||
Loading…
Reference in New Issue