mirror of
https://github.com/moby/moby.git
synced 2026-01-11 18:51:37 +00:00
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:
committed by
Sebastiaan van Stijn
parent
7d8df25d16
commit
b0711d5fe9
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user