"src/vscode:/vscode.git/clone" did not exist on "13994b2d3fbb536044ae1d4befb8102bfa6424ec"
Commit 70e0ab6b authored by Michael Yang's avatar Michael Yang
Browse files

remove unnecessary fmt.Sprintf

parent 319f078d
...@@ -873,14 +873,11 @@ func checkBlobExistence(mp ModelPath, digest string, regOpts *RegistryOptions) ( ...@@ -873,14 +873,11 @@ func checkBlobExistence(mp ModelPath, digest string, regOpts *RegistryOptions) (
return resp.StatusCode == http.StatusOK, nil return resp.StatusCode == http.StatusOK, nil
} }
func uploadBlobChunked(mp ModelPath, location string, layer *Layer, regOpts *RegistryOptions, fn func(api.ProgressResponse)) error { func uploadBlobChunked(mp ModelPath, url string, layer *Layer, regOpts *RegistryOptions, fn func(api.ProgressResponse)) error {
// TODO allow resumability // TODO allow resumability
// TODO allow canceling uploads via DELETE // TODO allow canceling uploads via DELETE
// TODO allow cross repo blob mount // TODO allow cross repo blob mount
// Create URL
url := location
fp, err := GetBlobsPath(layer.Digest) fp, err := GetBlobsPath(layer.Digest)
if err != nil { if err != nil {
return err return err
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment