Revert "read response in remote commands"

This reverts commit 46a4378531.
This commit is contained in:
Gokcehan committed 2017-02-11 16:45:23 +03:00
1 parent 68b9a5a04e
commit 6047255449
1 file changed
-10
-10
View File
@@ -166,15 +166,5 @@ func sendRemote(cmd string) error {
fmt.Fprintln(c, cmd) fmt.Fprintln(c, cmd)
s := bufio.NewScanner(c)
s.Scan()
fmt.Println(s.Text())
if s.Err() != nil {
return fmt.Errorf("reading response: %s", s.Err())
}
return nil return nil
} }