Skip to content

Commit fd94025

Browse files
dota17baylesj
authored andcommitted
change the returned value (open-source-parsers#1003)
1 parent 472adb6 commit fd94025

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/lib_json/json_reader.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ bool Reader::readToken(Token& token) {
311311
if (!ok)
312312
token.type_ = tokenError;
313313
token.end_ = current_;
314-
return true;
314+
return ok;
315315
}
316316

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

12801280
void OurReader::skipSpaces() {

0 commit comments

Comments
 (0)