diff options
| author | Chris Lu <chris.lu@gmail.com> | 2021-05-07 07:14:24 -0700 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2021-05-07 07:14:24 -0700 |
| commit | 007401f3a0b87f0a3d07f16ea731d6eec63d6975 (patch) | |
| tree | caa496259dfa44832cbc21df5901adabecdf5378 | |
| parent | 930581cedc00c86cfbc711efe0b99d7e65f09d11 (diff) | |
| download | seaweedfs-007401f3a0b87f0a3d07f16ea731d6eec63d6975.tar.xz seaweedfs-007401f3a0b87f0a3d07f16ea731d6eec63d6975.zip | |
remove duplicated code
| -rw-r--r-- | weed/command/filer_copy.go | 3 |
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 == "" { |
