From 007401f3a0b87f0a3d07f16ea731d6eec63d6975 Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Fri, 7 May 2021 07:14:24 -0700 Subject: [PATCH] remove duplicated code --- weed/command/filer_copy.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/weed/command/filer_copy.go b/weed/command/filer_copy.go index a9b715f90..ad3500915 100644 --- a/weed/command/filer_copy.go +++ b/weed/command/filer_copy.go @@ -426,9 +426,6 @@ func (worker *FileCopyWorker) uploadFileInChunks(task FileCopyTask, f *os.File, if err != nil { 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 if collection == "" {