aboutsummaryrefslogtreecommitdiffstats
path: root/internal/cp
diff options
context:
space:
mode:
Diffstat (limited to 'internal/cp')
-rw-r--r--internal/cp/cp.go3
1 files changed, 0 insertions, 3 deletions
diff --git a/internal/cp/cp.go b/internal/cp/cp.go
index 2558419..da164f4 100644
--- a/internal/cp/cp.go
+++ b/internal/cp/cp.go
@@ -201,12 +201,9 @@ func (c *copier) copySymlink(src FSPath, dst FSPath) error {
// interface. If force is specified and an existing destination file cannot be
// opened, Copy will remove it and try again.
func Copy(progress Progress, srcs []FSPath, dstRoot FSPath, force bool) {
- done := make(chan struct{})
go func() {
- defer close(done)
progress.Max(size(srcs))
}()
- defer func() { <-done }()
dstIsDir := true
if len(srcs) == 1 {