aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2021-05-07 07:14:24 -0700
committerChris Lu <chris.lu@gmail.com>2021-05-07 07:14:24 -0700
commit007401f3a0b87f0a3d07f16ea731d6eec63d6975 (patch)
treecaa496259dfa44832cbc21df5901adabecdf5378
parent930581cedc00c86cfbc711efe0b99d7e65f09d11 (diff)
downloadseaweedfs-007401f3a0b87f0a3d07f16ea731d6eec63d6975.tar.xz
seaweedfs-007401f3a0b87f0a3d07f16ea731d6eec63d6975.zip
remove duplicated code
-rw-r--r--weed/command/filer_copy.go3
1 files changed, 0 insertions, 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 == "" {