Skip to content

Commit

Permalink
Replace manually removing '\r' with string.remove
Browse files Browse the repository at this point in the history
  • Loading branch information
PiotrekB416 committed Oct 1, 2023
1 parent b9ef2e8 commit 96368e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/Stream.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ String Stream::readLine()
{
String ret = readStringUntil('\n');
if (ret.endsWith("\r"))
ret = ret.substring(0, ret.length() - 1);
ret.remove(ret.length()-1);
return ret;
}

Expand Down

0 comments on commit 96368e2

Please sign in to comment.