libprocess: Use CHECK_NONE. Used `grep -r "CHECK([^\!].*\.isNone())" .` to find the instances that look like `CHECK(x.isNone());`
Review: https://reviews.apache.org/r/35425 Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/98236481 Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/98236481 Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/98236481 Branch: refs/heads/master Commit: 9823648125a5fe560f9c278ee0a1239d7a8eabfb Parents: ad37834 Author: Michael Park <[email protected]> Authored: Sat Jun 13 07:28:48 2015 -0700 Committer: Benjamin Hindman <[email protected]> Committed: Sun Jun 14 02:43:01 2015 -0700 ---------------------------------------------------------------------- 3rdparty/libprocess/src/decoder.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/mesos/blob/98236481/3rdparty/libprocess/src/decoder.hpp ---------------------------------------------------------------------- diff --git a/3rdparty/libprocess/src/decoder.hpp b/3rdparty/libprocess/src/decoder.hpp index 56adde0..85ce9e3 100644 --- a/3rdparty/libprocess/src/decoder.hpp +++ b/3rdparty/libprocess/src/decoder.hpp @@ -555,7 +555,7 @@ private: decoder->value.clear(); CHECK(decoder->response == NULL); - CHECK(decoder->writer.isNone()); + CHECK_NONE(decoder->writer); decoder->response = new http::Response(); decoder->response->type = http::Response::PIPE; @@ -642,7 +642,7 @@ private: return 1; } - CHECK(decoder->writer.isNone()); + CHECK_NONE(decoder->writer); http::Pipe pipe; decoder->writer = pipe.writer();
