Removed useless channel read

This commit is contained in:
mjarkk 2018-11-14 11:14:31 +01:00
parent 18a1070c2c
commit 0c4c00c1bf

View file

@ -66,7 +66,6 @@ func RunCommandWithOutputLiveWrapper(c *OSCommand, command string, output func(s
go func() {
stopAsking <- struct{}{}
}()
<-stopAsking
if err != nil {
waitForBufio.Wait()
return strings.Join(cmdOutput, " "), err