Update json_value.cpp
Remove redundant comments.
This commit is contained in:
parent
8780fb07c7
commit
ea66d9825f
@ -1398,11 +1398,10 @@ String Value::Comments::get(CommentPlacement slot) const {
|
||||
}
|
||||
|
||||
void Value::Comments::set(CommentPlacement slot, String comment) {
|
||||
if (slot >= CommentPlacement::numberOfCommentPlacement) {
|
||||
return;
|
||||
}
|
||||
if (!ptr_) {
|
||||
ptr_ = std::unique_ptr<Array>(new Array());
|
||||
}
|
||||
if (slot < CommentPlacement::numberOfCommentPlacement) {
|
||||
(*ptr_)[slot] = std::move(comment);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user