fix comparison rule from errorlint

Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>

Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
This commit is contained in:
Matthieu MOREL
2025-06-08 11:52:34 +02:00
parent b65c31427c
commit 6d737371b8
95 changed files with 260 additions and 206 deletions

View File

@@ -3,6 +3,7 @@
package main
import (
"errors"
"strings"
"testing"
@@ -143,7 +144,7 @@ func (s *DockerDaemonSuite) TestDaemonShutdownWithPlugins(c *testing.T) {
}
for {
if err := unix.Kill(s.d.Pid(), 0); err == unix.ESRCH {
if err := unix.Kill(s.d.Pid(), 0); errors.Is(err, unix.ESRCH) {
break
}
}