This PR refactors the code mainly by reformatting, removing empty space, deleting unused code, simplifying code through guard clauses. It also catches an edge case where partitioning would report success even if only a part of the partitions were created successfully.
This PR refactors the code mainly by reformatting, removing empty space, deleting unused code, simplifying code through guard clauses. It also catches an edge case where partitioning would report success even if only a part of the partitions were created successfully.