提交 843fb2ea 编写于 作者: Y Yu Yang

Make code more readable

上级 c88dec20
......@@ -15,6 +15,7 @@ limitations under the License. */
#pragma once
#include <glog/logging.h>
#include <stdarg.h>
#include <stdio.h>
#include <memory>
#include <string>
......@@ -113,7 +114,7 @@ public:
/**
* @brief operator bool, return True if there is no error.
*/
operator bool() const { return !msg_; }
operator bool() const { return msg_ == nullptr; }
/**
* @brief check this status by glog.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册