libpod: add missing return in WaitForConditionWithInterval()

AS pointed out by Valentin on #25491, it is not an actual bug but this
is makes it more clear how it works and should not confuse readers why
this case has no return.

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
This commit is contained in:
Paul Holzinger
2025-03-13 14:10:33 +01:00
parent 5207feebd4
commit a1008a1294

View File

@ -775,6 +775,7 @@ func (c *Container) WaitForConditionWithInterval(ctx context.Context, waitTimeou
exitCode, err := c.runtime.state.GetContainerExitCode(c.ID())
if err == nil {
trySend(exitCode, nil)
return
}
trySend(-1, nil)