Remove unused and duplicate error types
Signed-off-by: Derek McGowan <derek@mcgstyle.net> (github: dmcgowan)
This commit is contained in:
parent
98836d6267
commit
94e375c5d1
3 changed files with 3 additions and 33 deletions
|
@ -28,7 +28,7 @@ type httpBlobUpload struct {
|
|||
|
||||
func (hbu *httpBlobUpload) handleErrorResponse(resp *http.Response) error {
|
||||
if resp.StatusCode == http.StatusNotFound {
|
||||
return &BlobUploadNotFoundError{Location: hbu.location}
|
||||
return distribution.ErrBlobUploadUnknown
|
||||
}
|
||||
return handleErrorResponse(resp)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue