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:
Egor Makrushin 2024-01-09 16:09:48 +03:00
parent 475dff6a06
commit 380fa1c836
1 changed files with 0 additions and 3 deletions

View File

@ -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 {