diff options
author | Tao Bao <tbao@google.com> | 2017-03-23 22:51:59 +0100 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2017-03-23 22:51:59 +0100 |
commit | 2bf8ff62050c5d9a7569dad558fcc5076b55a8d5 (patch) | |
tree | 305a75306dc85d27b1d60453d7f5c61c942538af | |
parent | Merge "Checking unsigned variable less than zero" am: 0d264bf088 am: 957f6491f8 (diff) | |
parent | Merge "Redundant checking of STL container element" am: b56a3c2e3a (diff) | |
download | android_bootable_recovery-2bf8ff62050c5d9a7569dad558fcc5076b55a8d5.tar android_bootable_recovery-2bf8ff62050c5d9a7569dad558fcc5076b55a8d5.tar.gz android_bootable_recovery-2bf8ff62050c5d9a7569dad558fcc5076b55a8d5.tar.bz2 android_bootable_recovery-2bf8ff62050c5d9a7569dad558fcc5076b55a8d5.tar.lz android_bootable_recovery-2bf8ff62050c5d9a7569dad558fcc5076b55a8d5.tar.xz android_bootable_recovery-2bf8ff62050c5d9a7569dad558fcc5076b55a8d5.tar.zst android_bootable_recovery-2bf8ff62050c5d9a7569dad558fcc5076b55a8d5.zip |
Diffstat (limited to '')
-rw-r--r-- | updater/blockimg.cpp | 4 |
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); |