-[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,8 +240,10 @@ final class InstallAppOperation: ResultOperation<InstalledApp>
do do
{ {
try FileManager.default.removeItem(at: fileURL) if(FileManager.default.fileExists(atPath: fileURL.path)){
print("Removed refreshed IPA") try FileManager.default.removeItem(at: fileURL)
print("Removed refreshed IPA")
}
} }
catch catch
{ {