Files
teleport/lib/utils
Nic Klaassen 2568bff9db fix: use errors.Is for all EOF comparisons (#26012)
This commit updates all `err == io.EOF` comparisons to use
`errors.Is(err, io.EOF)`. This is necessary when the error may have been
wrapped and fixes at least one current breakage (in `tsh request ls`).

`golang.org/x/tools/refactor/eg` was very handy for this, I used the
following template:

```go
package teleport
import (
	"errors"
	"io"
)
func before(err error) bool { return err == io.EOF }
func after(err error) bool  { return errors.Is(err, io.EOF) }
```
2023-05-10 19:27:39 +00:00
..
2022-07-14 10:51:23 +00:00
2022-11-23 10:14:45 -08:00
2022-10-28 20:20:28 +00:00
2020-04-17 20:05:38 +00:00
2022-10-28 20:20:28 +00:00
2022-10-28 20:20:28 +00:00
2023-02-07 09:01:35 +00:00
2022-10-28 20:20:28 +00:00
2022-10-28 20:20:28 +00:00
2022-09-27 15:01:32 -07:00
2023-03-31 17:35:21 +00:00
2022-10-28 20:20:28 +00:00
2022-10-28 20:20:28 +00:00
2022-12-30 12:09:11 -08:00
2023-03-31 21:55:13 +00:00
2021-12-09 19:50:44 +00:00
2020-09-28 23:08:56 -07:00
2022-10-28 20:20:28 +00:00
2021-10-19 14:00:24 -04:00
2022-10-28 20:20:28 +00:00
2023-03-23 18:40:40 +00:00
2022-07-14 19:22:54 -07:00