mirror of
https://github.com/intrepidcs/libicsneo.git
synced 2026-08-05 09:28:40 +02:00
Removed extraneous error checking
This commit is contained in:
@@ -35,10 +35,7 @@ bool ICommunication::readWait(std::vector<uint8_t>& bytes, std::chrono::millisec
|
||||
|
||||
bytes.resize(actuallyRead);
|
||||
|
||||
bool ret = actuallyRead > 0;
|
||||
if(!ret)
|
||||
err(APIError::FailedToRead);
|
||||
return ret;
|
||||
return actuallyRead > 0;
|
||||
}
|
||||
|
||||
bool ICommunication::write(const std::vector<uint8_t>& bytes) {
|
||||
|
||||
Reference in New Issue
Block a user