Repository: mesos
Updated Branches:
  refs/heads/master 586307e54 -> eac75ee61


Fixed Master::addTask() to not have control reach end of non-void
function.


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

Branch: refs/heads/master
Commit: eac75ee613ddb457df8264c598e95f46d208d399
Parents: 586307e
Author: Vinod Kone <[email protected]>
Authored: Wed Aug 5 16:59:37 2015 -0700
Committer: Vinod Kone <[email protected]>
Committed: Wed Aug 5 16:59:37 2015 -0700

----------------------------------------------------------------------
 src/master/master.hpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/mesos/blob/eac75ee6/src/master/master.hpp
----------------------------------------------------------------------
diff --git a/src/master/master.hpp b/src/master/master.hpp
index e441749..30a2550 100644
--- a/src/master/master.hpp
+++ b/src/master/master.hpp
@@ -1294,9 +1294,9 @@ struct Framework
   {
     if (tasks.count(taskId) > 0) {
       return tasks[taskId];
-    } else {
-      return NULL;
     }
+
+    return NULL;
   }
 
   void addTask(Task* task)

Reply via email to