Improve CHECK.

This commit is contained in:
levlam 2021-11-13 23:50:18 +03:00
parent 60907279fd
commit 5e70be9d36

View File

@ -363,7 +363,7 @@ class Status {
}
Status clone_static() const TD_WARN_UNUSED_RESULT {
CHECK(is_ok() || get_info().static_flag);
CHECK(ptr_ != nullptr && get_info().static_flag);
Status result;
result.ptr_ = std::unique_ptr<char[], Deleter>(ptr_.get());
return result;