You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by be...@apache.org on 2015/06/14 11:46:30 UTC

[12/21] mesos git commit: libprocess: Use CHECK_NONE.

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 <mc...@gmail.com>
Authored: Sat Jun 13 07:28:48 2015 -0700
Committer: Benjamin Hindman <be...@gmail.com>
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();