diff --git a/docs/handlers/blobupload.go b/docs/handlers/blobupload.go index 0f325184..1e3bff95 100644 --- a/docs/handlers/blobupload.go +++ b/docs/handlers/blobupload.go @@ -127,7 +127,7 @@ func (buh *blobUploadHandler) StartBlobUpload(w http.ResponseWriter, r *http.Req if mountDigest != "" && fromRepo != "" { opt, err := buh.createBlobMountOption(fromRepo, mountDigest) - if err != nil { + if opt != nil && err == nil { options = append(options, opt) } }