MCPcopy Create free account
hub / github.com/chainreactors/EvilProxy / isObjectNotFound

Function isObjectNotFound

internal/store/objectstore.go:623–636  ·  view source on GitHub ↗
(err error)

Source from the content-addressed store, hash-verified

621}
622
623func 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}

Callers 2

syncConfigFromBucketMethod · 0.85
deleteObjectMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected