remove duplicated code
This commit is contained in:
@@ -426,9 +426,6 @@ func (worker *FileCopyWorker) uploadFileInChunks(task FileCopyTask, f *os.File,
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
fmt.Printf("Failed to assign from %v: %v\n", worker.options.masters, err)
|
fmt.Printf("Failed to assign from %v: %v\n", worker.options.masters, err)
|
||||||
}
|
}
|
||||||
if err != nil {
|
|
||||||
fmt.Printf("Failed to assign from %v: %v\n", worker.options.masters, err)
|
|
||||||
}
|
|
||||||
|
|
||||||
targetUrl := "http://" + assignResult.Url + "/" + assignResult.FileId
|
targetUrl := "http://" + assignResult.Url + "/" + assignResult.FileId
|
||||||
if collection == "" {
|
if collection == "" {
|
||||||
|
|||||||
Reference in New Issue
Block a user