mirror of
https://github.com/SideStore/SideStore.git
synced 2026-02-18 11:13:28 +01:00
-[cleanup]: added guard check to remove file only if it exists
This commit is contained in:
@@ -240,9 +240,11 @@ final class InstallAppOperation: ResultOperation<InstalledApp>
|
|||||||
|
|
||||||
do
|
do
|
||||||
{
|
{
|
||||||
|
if(FileManager.default.fileExists(atPath: fileURL.path)){
|
||||||
try FileManager.default.removeItem(at: fileURL)
|
try FileManager.default.removeItem(at: fileURL)
|
||||||
print("Removed refreshed IPA")
|
print("Removed refreshed IPA")
|
||||||
}
|
}
|
||||||
|
}
|
||||||
catch
|
catch
|
||||||
{
|
{
|
||||||
print("Failed to remove refreshed .ipa: \(error)")
|
print("Failed to remove refreshed .ipa: \(error)")
|
||||||
|
|||||||
Reference in New Issue
Block a user