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