mirror of https://github.com/dapr/cli.git
Move return (#209)
This commit is contained in:
parent
321cb1a4c1
commit
5fc4924080
|
@ -162,10 +162,10 @@ func runRedis(wg *sync.WaitGroup, errorChan chan<- error, dir, version string, d
|
|||
runError := isContainerRunError(err)
|
||||
if !runError {
|
||||
errorChan <- parseDockerError("Redis state store", err)
|
||||
return
|
||||
} else {
|
||||
errorChan <- fmt.Errorf("docker %s failed with: %v", args, err)
|
||||
}
|
||||
return
|
||||
}
|
||||
errorChan <- nil
|
||||
}
|
||||
|
@ -231,10 +231,10 @@ func runPlacementService(wg *sync.WaitGroup, errorChan chan<- error, dir, versio
|
|||
runError := isContainerRunError(err)
|
||||
if !runError {
|
||||
errorChan <- parseDockerError("placement service", err)
|
||||
return
|
||||
} else {
|
||||
errorChan <- fmt.Errorf("docker %s failed with: %v", args, err)
|
||||
}
|
||||
return
|
||||
}
|
||||
errorChan <- nil
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue