Repository: mesos
Updated Branches:
  refs/heads/master 70d63d951 -> 53b25f7a0


Removes redundant call of get() on smart pointer.


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

Branch: refs/heads/master
Commit: 53b25f7a04d24efc9b5a75a94a205cc226072529
Parents: 70d63d9
Author: Alexander Rojas <alexan...@mesosphere.io>
Authored: Thu Mar 15 14:22:12 2018 +0100
Committer: Alexander Rojas <alexan...@mesosphere.io>
Committed: Thu Mar 15 14:22:12 2018 +0100

----------------------------------------------------------------------
 src/master/master.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/mesos/blob/53b25f7a/src/master/master.cpp
----------------------------------------------------------------------
diff --git a/src/master/master.cpp b/src/master/master.cpp
index f0affa0..aa35abc 100644
--- a/src/master/master.cpp
+++ b/src/master/master.cpp
@@ -11179,7 +11179,7 @@ void Master::Subscribers::Subscriber::send(
       CHECK_NOTNULL(frameworkInfo.get());
       CHECK_NOTNULL(task.get());
 
-      if (approvers->approved<VIEW_TASK>(*task.get(), *frameworkInfo) &&
+      if (approvers->approved<VIEW_TASK>(*task, *frameworkInfo) &&
           approvers->approved<VIEW_FRAMEWORK>(*frameworkInfo)) {
         http.send<mesos::master::Event, v1::master::Event>(*event);
       }

Reply via email to