Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 67e4387

Browse filesBrowse files
zakkiefacchinm
authored andcommitted
remove unnecessary if branch
checking `length` in below while statement Porting of arduino/ArduinoCore-avr#103
1 parent 3daf189 commit 67e4387
Copy full SHA for 67e4387

File tree

1 file changed

+0
-1
lines changed
Filter options

1 file changed

+0
-1
lines changed

‎api/Stream.cpp

Copy file name to clipboardExpand all lines: api/Stream.cpp
-1Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,6 @@ size_t Stream::readBytes(char *buffer, size_t length)
220220

221221
size_t Stream::readBytesUntil(char terminator, char *buffer, size_t length)
222222
{
223-
if (length < 1) return 0;
224223
size_t index = 0;
225224
while (index < length) {
226225
int c = timedRead();

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.