-[cleanup]: added guard check to remove file only if it exists

This commit is contained in:
Magesh K
2024-11-10 16:22:50 +05:30
parent 6568e5918a
commit c3235cc554

View File

@@ -240,9 +240,11 @@ final class InstallAppOperation: ResultOperation<InstalledApp>
do
{
if(FileManager.default.fileExists(atPath: fileURL.path)){
try FileManager.default.removeItem(at: fileURL)
print("Removed refreshed IPA")
}
}
catch
{
print("Failed to remove refreshed .ipa: \(error)")