Unify indentation and little clean-up in TWRP files
Signed-off-by: Vojtech Bocek <vbocek@gmail.com>
diff --git a/partitionmanager.cpp b/partitionmanager.cpp
index 71e5e34..77cf37e 100644
--- a/partitionmanager.cpp
+++ b/partitionmanager.cpp
@@ -1104,14 +1104,14 @@
}
}
TWPartition* sdext = Find_Partition_By_Path("/sd-ext");
- if (sdext != NULL) {
- if (sdext->Is_Present && sdext->Mount(false)) {
- if (stat("/sd-ext/dalvik-cache", &st) == 0) {
- TWFunc::removeDir("/sd-ext/dalvik-cache", false);
- gui_print("Cleaned: /sd-ext/dalvik-cache...\n");
- }
+ if (sdext && sdext->Is_Present && sdext->Mount(false))
+ {
+ if (stat("/sd-ext/dalvik-cache", &st) == 0)
+ {
+ TWFunc::removeDir("/sd-ext/dalvik-cache", false);
+ gui_print("Cleaned: /sd-ext/dalvik-cache...\n");
}
- }
+ }
gui_print("-- Dalvik Cache Directories Wipe Complete!\n\n");
return true;
}
@@ -1893,4 +1893,4 @@
}
}
fclose(fp);
-}
\ No newline at end of file
+}