mirror of
https://github.com/gravitational/teleport
synced 2024-10-21 01:34:01 +00:00
2568bff9db
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) } ``` |
||
---|---|---|
.. | ||
access | ||
kube-agent-updater | ||
lib | ||
operator | ||
Makefile |