distribution/xfer/transfer.go
Method transferManager.transfer
has 53 lines of code (exceeds 50 allowed). Consider refactoring. Open
Open
func (tm *transferManager) transfer(key string, xferFunc doFunc, progressOutput progress.Output) (transfer, *watcher) {
tm.mu.Lock()
defer tm.mu.Unlock()
for {