From beb46cc1a0ed45def3926657e88e48157e389eb8 Mon Sep 17 00:00:00 2001 From: Kaveh Vahedipour Date: Wed, 7 Sep 2016 15:11:10 +0200 Subject: [PATCH] cppcheck warnings --- arangod/Agency/AddFollower.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/arangod/Agency/AddFollower.cpp b/arangod/Agency/AddFollower.cpp index 1f5698d835..4fe4c030aa 100644 --- a/arangod/Agency/AddFollower.cpp +++ b/arangod/Agency/AddFollower.cpp @@ -243,13 +243,10 @@ JOB_STATUS AddFollower::status () { } if (status == PENDING) { - std::string planPath = - planColPrefix + _database + "/" + _collection + "/shards/" + _shard; std::string curPath = curColPrefix + _database + "/" + _collection + "/" + _shard + "/servers"; - + Slice current = _snapshot(curPath).slice(); - std::vector currv; for (auto const& srv : VPackArrayIterator(current)) { if (srv.copyString() == _newFollower) { if (finish("Shards/" + _shard)) { @@ -257,6 +254,7 @@ JOB_STATUS AddFollower::status () { } } } + } return status;