summaryrefslogtreecommitdiffstats
path: root/twrp-functions.cpp
diff options
context:
space:
mode:
authorMatt Mower <mowerm@gmail.com>2014-04-16 20:43:36 +0200
committerEthan Yonker <dees_troy@teamw.in>2014-06-04 16:13:37 +0200
commitfb1c4ffaafae4843c7edb302351b7df48e02a990 (patch)
tree284a58b5a5b9d827e409bd169a06c2a146a662be /twrp-functions.cpp
parentAdd options to repair or change file system (diff)
downloadandroid_bootable_recovery-fb1c4ffaafae4843c7edb302351b7df48e02a990.tar
android_bootable_recovery-fb1c4ffaafae4843c7edb302351b7df48e02a990.tar.gz
android_bootable_recovery-fb1c4ffaafae4843c7edb302351b7df48e02a990.tar.bz2
android_bootable_recovery-fb1c4ffaafae4843c7edb302351b7df48e02a990.tar.lz
android_bootable_recovery-fb1c4ffaafae4843c7edb302351b7df48e02a990.tar.xz
android_bootable_recovery-fb1c4ffaafae4843c7edb302351b7df48e02a990.tar.zst
android_bootable_recovery-fb1c4ffaafae4843c7edb302351b7df48e02a990.zip
Diffstat (limited to 'twrp-functions.cpp')
-rw-r--r--twrp-functions.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/twrp-functions.cpp b/twrp-functions.cpp
index fd974d234..2128c9635 100644
--- a/twrp-functions.cpp
+++ b/twrp-functions.cpp
@@ -550,7 +550,7 @@ int TWFunc::removeDir(const string path, bool skipParent) {
if (p->d_type == DT_DIR) {
r = removeDir(new_path, true);
if (!r) {
- if (p->d_type == DT_DIR)
+ if (p->d_type == DT_DIR)
r = rmdir(new_path.c_str());
else
LOGINFO("Unable to removeDir '%s': %s\n", new_path.c_str(), strerror(errno));
@@ -564,7 +564,7 @@ int TWFunc::removeDir(const string path, bool skipParent) {
}
closedir(d);
- if (!r) {
+ if (!r) {
if (skipParent)
return 0;
else