This is an automated email from the ASF dual-hosted git repository.

bmahler pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mesos.git

commit 446921ae277969ce66a62b0827b9f6ea937e272a
Author: Benjamin Mahler <[email protected]>
AuthorDate: Wed Feb 28 17:11:29 2024 -0500

    [cgroups2] Fix compilation errors.
---
 src/linux/cgroups2.cpp | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/src/linux/cgroups2.cpp b/src/linux/cgroups2.cpp
index ccf01ccbb..eff44f11e 100644
--- a/src/linux/cgroups2.cpp
+++ b/src/linux/cgroups2.cpp
@@ -230,16 +230,18 @@ Try<Nothing> unmount()
 
   Try<Nothing> result = mesos::internal::fs::unmount(MOUNT_POINT);
   if (result.isError()) {
-    return Error("Failed to unmount the cgroup2 hierarchy" +
+    return Error("Failed to unmount the cgroup2 hierarchy"
                  " '" + cgroups2::MOUNT_POINT + "': " + result.error());
   }
 
   Try<Nothing> rmdir = os::rmdir(cgroups2::MOUNT_POINT);
   if (rmdir.isError()) {
     return Error(
-      "Failed to remove directory '" + cgroups2::MOUNT_POINT + "': " +
-      rmdir.error());
+        "Failed to remove directory '" + cgroups2::MOUNT_POINT + "': " +
+        rmdir.error());
   }
+
+  return Nothing();
 }
 
 namespace subsystems {

Reply via email to