Unverified Commit 317513b9 authored by Alexander Entinger's avatar Alexander Entinger Committed by GitHub

Merge pull request #103 from zakkie/fix/remove_if

Removes unnecessary if branch (because length is checked in while statement below the if-clause).
parents 7a2e1cd8 29bfd08c
......@@ -218,7 +218,6 @@ size_t Stream::readBytes(char *buffer, size_t length)
size_t Stream::readBytesUntil(char terminator, char *buffer, size_t length)
{
if (length < 1) return 0;
size_t index = 0;
while (index < length) {
int c = timedRead();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment