summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTao Bao <tbao@google.com>2017-03-23 22:27:27 +0100
committerandroid-build-merger <android-build-merger@google.com>2017-03-23 22:27:27 +0100
commit9e05f26e1a5310f7b14945ad721e9ba40c123898 (patch)
treec581571fbb3e23090ecec3608334f25fae107323
parentMerge "Checking unsigned variable less than zero" (diff)
parentMerge "Redundant checking of STL container element" (diff)
downloadandroid_bootable_recovery-9e05f26e1a5310f7b14945ad721e9ba40c123898.tar
android_bootable_recovery-9e05f26e1a5310f7b14945ad721e9ba40c123898.tar.gz
android_bootable_recovery-9e05f26e1a5310f7b14945ad721e9ba40c123898.tar.bz2
android_bootable_recovery-9e05f26e1a5310f7b14945ad721e9ba40c123898.tar.lz
android_bootable_recovery-9e05f26e1a5310f7b14945ad721e9ba40c123898.tar.xz
android_bootable_recovery-9e05f26e1a5310f7b14945ad721e9ba40c123898.tar.zst
android_bootable_recovery-9e05f26e1a5310f7b14945ad721e9ba40c123898.zip
Diffstat (limited to '')
-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);