Replaces a number of error equality checks with errors.Is

Signed-off-by: redwrasse <mail@redwrasse.io>
This commit is contained in:
redwrasse
2024-09-03 16:02:24 -07:00
parent 2c53be7c5d
commit d4df7a902e
12 changed files with 52 additions and 42 deletions

View File

@@ -307,7 +307,7 @@ func (ep *EtcdServerProcess) IsRunning() bool {
}
exitCode, err := ep.proc.ExitCode()
if err == expect.ErrProcessRunning {
if errors.Is(err, expect.ErrProcessRunning) {
return true
}