pick nits

This commit is contained in:
James Alan Nguyen 2022-05-17 11:42:10 +10:00
parent ec80a2218c
commit fe11ec3877
2 changed files with 32 additions and 18 deletions

View file

@ -171,7 +171,7 @@ String SafeReader::readStringLine() {
if (isEOF()) throw EndOfFileException(this, len);
while (!isEOF() && (c=readC())!=0) {
if (c=='\r'||c=='\n') {
if (c=='\r' || c=='\n') {
break;
}
ret.push_back(c);
@ -185,11 +185,11 @@ String SafeReader::readStringToken(unsigned char delim, bool stripContiguous) {
if (isEOF()) throw EndOfFileException(this, len);
while (!isEOF() && (c=readC())!=0) {
if (c == '\r' || c == '\n') {
if (c=='\r' || c=='\n') {
break;
}
if (c == delim) {
if (ret.length() == 0 && stripContiguous) {
if (c==delim) {
if (ret.length()==0 && stripContiguous) {
continue;
}
break;