fix(QF1001): Apply De Morgan’s law

Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
Matthieu MOREL
2025-04-27 08:57:01 +02:00
committed by Sebastiaan van Stijn
parent 7d8df25d16
commit b0711d5fe9
18 changed files with 40 additions and 39 deletions

View File

@@ -37,7 +37,7 @@ func (daemon *Daemon) ContainerLogs(ctx context.Context, containerName string, c
"container": containerName,
})
if !(config.ShowStdout || config.ShowStderr) {
if !config.ShowStdout && !config.ShowStderr {
return nil, false, errdefs.InvalidParameter(errors.New("You must choose at least one stream"))
}
ctr, err := daemon.GetContainer(containerName)