diff --git a/src/client.rs b/src/client.rs index 21d36fb..42077f9 100644 --- a/src/client.rs +++ b/src/client.rs @@ -256,12 +256,7 @@ impl Client { 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) -> Result<()> {