(err error)
| 621 | } |
| 622 | |
| 623 | func isObjectNotFound(err error) bool { |
| 624 | if err == nil { |
| 625 | return false |
| 626 | } |
| 627 | resp := minio.ToErrorResponse(err) |
| 628 | if resp.StatusCode == http.StatusNotFound { |
| 629 | return true |
| 630 | } |
| 631 | switch resp.Code { |
| 632 | case "NoSuchKey", "NotFound", "NoSuchBucket": |
| 633 | return true |
| 634 | } |
| 635 | return false |
| 636 | } |
no outgoing calls
no test coverage detected