isFatalError is a helper function to determine if an error is fatal or not. ReaderAt interfaces are expected to to return io.EOF and valid data simultaneously.
(err error)
| 162 | // isFatalError is a helper function to determine if an error is fatal or not. ReaderAt interfaces are expected to |
| 163 | // to return io.EOF and valid data simultaneously. |
| 164 | func isFatalError(err error) bool { |
| 165 | if err == nil || errors.Is(err, io.EOF) { |
| 166 | return false |
| 167 | } |
| 168 | |
| 169 | return true |
| 170 | } |
no outgoing calls
no test coverage detected