change the returned value (#1003)

This commit is contained in:
dota17 2019-08-27 03:47:54 +08:00 committed by Jordan Bayles
parent 472adb60ee
commit fd940255ce

View File

@ -311,7 +311,7 @@ bool Reader::readToken(Token& token) {
if (!ok) if (!ok)
token.type_ = tokenError; token.type_ = tokenError;
token.end_ = current_; token.end_ = current_;
return true; return ok;
} }
void Reader::skipSpaces() { void Reader::skipSpaces() {
@ -1274,7 +1274,7 @@ bool OurReader::readToken(Token& token) {
if (!ok) if (!ok)
token.type_ = tokenError; token.type_ = tokenError;
token.end_ = current_; token.end_ = current_;
return true; return ok;
} }
void OurReader::skipSpaces() { void OurReader::skipSpaces() {