Skip to content

Commit 73e0c76

Browse files
Fix the incorrect condition (#1429)
Fix the condition in PartitionsRepository::ParsePartitionsStream Relates-To: OLPEDGE-2832 Signed-off-by: Mykhailo Kuchma <[email protected]>
1 parent 614ed1b commit 73e0c76

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

olp-cpp-sdk-dataservice-read/src/repositories/PartitionsRepository.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -652,7 +652,7 @@ client::ApiNoResponse PartitionsRepository::ParsePartitionsStream(
652652
*json_stream, *partitions_handler);
653653
}
654654

655-
if (parse_result != rapidjson::kParseErrorNone) {
655+
if (!parse_result) {
656656
return client::ApiError(parse_result.Code(), "Parsing error");
657657
}
658658

0 commit comments

Comments
 (0)