Merge "Redundant checking of STL container element" am: b56a3c2e3a am: 9e05f26e1a

am: bc3d2ee5e5

Change-Id: I704638b127b43b1e2964f5679bdd486384563a8e
This commit is contained in:
Tao Bao
2017-03-23 21:51:59 +00:00
committed by android-build-merger
+1 -3
View File
@@ -1220,9 +1220,7 @@ static int PerformCommandFree(CommandParameters& params) {
const std::string& id = params.tokens[params.cpos++];
if (stash_map.find(id) != stash_map.end()) {
stash_map.erase(id);
}
stash_map.erase(id);
if (params.createdstash || params.canwrite) {
return FreeStash(params.stashbase, id);