summaryrefslogtreecommitdiffstats
path: root/updater
diff options
context:
space:
mode:
authorTao Bao <tbao@google.com>2017-03-23 22:13:47 +0100
committerGerrit Code Review <noreply-gerritcodereview@google.com>2017-03-23 22:13:47 +0100
commitb56a3c2e3afe1e9001e80358c66c66fe2775e42e (patch)
tree0f6e93472d77c2afe5e9c47d6d1f214c39a0bd8b /updater
parentMerge "Checking unsigned variable less than zero" (diff)
parentRedundant checking of STL container element (diff)
downloadandroid_bootable_recovery-b56a3c2e3afe1e9001e80358c66c66fe2775e42e.tar
android_bootable_recovery-b56a3c2e3afe1e9001e80358c66c66fe2775e42e.tar.gz
android_bootable_recovery-b56a3c2e3afe1e9001e80358c66c66fe2775e42e.tar.bz2
android_bootable_recovery-b56a3c2e3afe1e9001e80358c66c66fe2775e42e.tar.lz
android_bootable_recovery-b56a3c2e3afe1e9001e80358c66c66fe2775e42e.tar.xz
android_bootable_recovery-b56a3c2e3afe1e9001e80358c66c66fe2775e42e.tar.zst
android_bootable_recovery-b56a3c2e3afe1e9001e80358c66c66fe2775e42e.zip
Diffstat (limited to 'updater')
-rw-r--r--updater/blockimg.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/updater/blockimg.cpp b/updater/blockimg.cpp
index efdfec19a..12ca151a1 100644
--- a/updater/blockimg.cpp
+++ b/updater/blockimg.cpp
@@ -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);