Removing uneeded wrapper around read_response in run_command
This commit is contained in:
parent
1cf02a409c
commit
91bcdf1a4e
1 changed files with 1 additions and 6 deletions
|
|
@ -256,12 +256,7 @@ impl<T: Read+Write> Client<T> {
|
|||
Err(_) => return Err(Error::new(ErrorKind::Other, "Failed to write")),
|
||||
};
|
||||
|
||||
let ret = match self.read_response() {
|
||||
Ok(lines) => Ok(lines),
|
||||
Err(_) => Err(Error::new(ErrorKind::Other, "Failed to read")),
|
||||
};
|
||||
|
||||
return ret;
|
||||
self.read_response()
|
||||
}
|
||||
|
||||
fn parse_response_ok(&mut self, lines: Vec<String>) -> Result<()> {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue