diff options
author | Mikhail Lappo <miklelappo@gmail.com> | 2017-03-23 17:16:17 +0100 |
---|---|---|
committer | Mikhail Lappo <miklelappo@gmail.com> | 2017-03-23 17:20:47 +0100 |
commit | bb8bce932e288189202bd8d080db0cd88c0f6d70 (patch) | |
tree | 2d7719fa15b997f748a7314451de77c517f660a7 | |
parent | Checking unsigned variable less than zero (diff) | |
download | android_bootable_recovery-bb8bce932e288189202bd8d080db0cd88c0f6d70.tar android_bootable_recovery-bb8bce932e288189202bd8d080db0cd88c0f6d70.tar.gz android_bootable_recovery-bb8bce932e288189202bd8d080db0cd88c0f6d70.tar.bz2 android_bootable_recovery-bb8bce932e288189202bd8d080db0cd88c0f6d70.tar.lz android_bootable_recovery-bb8bce932e288189202bd8d080db0cd88c0f6d70.tar.xz android_bootable_recovery-bb8bce932e288189202bd8d080db0cd88c0f6d70.tar.zst android_bootable_recovery-bb8bce932e288189202bd8d080db0cd88c0f6d70.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); |