You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by al...@apache.org on 2016/11/03 12:40:23 UTC

[5/5] mesos git commit: Updated formatting in HealthChecker for consistency.

Updated formatting in HealthChecker for consistency.

Review: https://reviews.apache.org/r/51609


Project: http://git-wip-us.apache.org/repos/asf/mesos/repo
Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/0b3942e2
Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/0b3942e2
Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/0b3942e2

Branch: refs/heads/master
Commit: 0b3942e268dc0203e5a6b6bad032b3c011edcd12
Parents: eb22506
Author: Alexander Rukletsov <al...@apache.org>
Authored: Fri Sep 2 18:26:14 2016 +0200
Committer: Alexander Rukletsov <al...@apache.org>
Committed: Thu Nov 3 11:34:30 2016 +0100

----------------------------------------------------------------------
 src/health-check/health_checker.cpp | 14 ++++++++------
 1 file changed, 8 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/mesos/blob/0b3942e2/src/health-check/health_checker.cpp
----------------------------------------------------------------------
diff --git a/src/health-check/health_checker.cpp b/src/health-check/health_checker.cpp
index 5a47fd6..e2b32e2 100644
--- a/src/health-check/health_checker.cpp
+++ b/src/health-check/health_checker.cpp
@@ -660,21 +660,23 @@ Option<Error> healthCheck(const HealthCheck& check)
     if (http.has_scheme() &&
         http.scheme() != "http" &&
         http.scheme() != "https") {
-      return Error("Unsupported HTTP health check scheme: '" + http.scheme() +
-                   "'");
+      return Error(
+          "Unsupported HTTP health check scheme: '" + http.scheme() + "'");
     }
 
     if (http.has_path() && !strings::startsWith(http.path(), '/')) {
-      return Error("The path '" + http.path() + "' of HTTP health check must "
-                   "start with '/'");
+      return Error(
+          "The path '" + http.path() +
+          "' of HTTP health check must start with '/'");
     }
   } else if (check.type() == HealthCheck::TCP) {
     if (!check.has_tcp()) {
       return Error("Expecting 'tcp' to be set for TCP health check");
     }
   } else {
-    return Error("Unsupported health check type: '" +
-                 HealthCheck::Type_Name(check.type()) + "'");
+    return Error(
+        "Unsupported health check type: '" +
+        HealthCheck::Type_Name(check.type()) + "'");
   }
 
   return None();