commit | b56a3c2e3afe1e9001e80358c66c66fe2775e42e | [log] [tgz] |
---|---|---|
author | Tao Bao <tbao@google.com> | Thu Mar 23 21:13:47 2017 +0000 |
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | Thu Mar 23 21:13:47 2017 +0000 |
tree | 0f6e93472d77c2afe5e9c47d6d1f214c39a0bd8b | |
parent | 0d264bf088960285bc9f4e31250a9a3bfe8e03bf [diff] | |
parent | bb8bce932e288189202bd8d080db0cd88c0f6d70 [diff] |
Merge "Redundant checking of STL container element"
diff --git a/updater/blockimg.cpp b/updater/blockimg.cpp index efdfec1..12ca151 100644 --- a/updater/blockimg.cpp +++ b/updater/blockimg.cpp
@@ -1220,9 +1220,7 @@ 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);