From fb1c4ffaafae4843c7edb302351b7df48e02a990 Mon Sep 17 00:00:00 2001 From: Matt Mower Date: Wed, 16 Apr 2014 13:43:36 -0500 Subject: Whitespace and minor code cleanup This is by no means comprehensive, but is quite a bit better already. Change-Id: Ibc8654a5dfb0eec39cbd0b64bdb52bb4fbfe2f7e --- twrp-functions.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'twrp-functions.cpp') 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 -- cgit v1.2.3