Skip to content

Commit

Permalink
common notation of empty if/else case
Browse files Browse the repository at this point in the history
  • Loading branch information
Oliver Hahm committed Apr 21, 2017
1 parent 63423eb commit 885b5cd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/rapidjson/schema.h
Original file line number Diff line number Diff line change
Expand Up @@ -1112,8 +1112,8 @@ class Schema {
if (exclusiveMaximum_ ? i >= maximum_.GetInt64() : i > maximum_.GetInt64())
RAPIDJSON_INVALID_KEYWORD_RETURN(GetMaximumString());
}
else if (maximum_.IsUint64())
/* do nothing */; // i <= max(int64_t) < maximum_.GetUint64()
else if (maximum_.IsUint64()) { }
/* do nothing */ // i <= max(int64_t) < maximum_.GetUint64()
else if (!CheckDoubleMaximum(context, static_cast<double>(i)))
return false;
}
Expand Down

0 comments on commit 885b5cd

Please sign in to comment.