mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
Replaces a number of error equality checks with errors.Is
Signed-off-by: redwrasse <mail@redwrasse.io>
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user