mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2026-04-21 22:25:03 -04:00
Reformat and apply Stylecop rules
This commit is contained in:
@@ -57,10 +57,14 @@ namespace NzbDrone.Update.UpdateEngine
|
||||
_logger.Info("Verifying requirements before update...");
|
||||
|
||||
if (string.IsNullOrWhiteSpace(targetFolder))
|
||||
{
|
||||
throw new ArgumentException("Target folder can not be null or empty");
|
||||
}
|
||||
|
||||
if (!_diskProvider.FolderExists(targetFolder))
|
||||
{
|
||||
throw new DirectoryNotFoundException("Target folder doesn't exist " + targetFolder);
|
||||
}
|
||||
|
||||
if (processId < 1)
|
||||
{
|
||||
@@ -74,7 +78,9 @@ namespace NzbDrone.Update.UpdateEngine
|
||||
|
||||
_logger.Info("Verifying Update Folder");
|
||||
if (!_diskProvider.FolderExists(_appFolderInfo.GetUpdatePackageFolder()))
|
||||
{
|
||||
throw new DirectoryNotFoundException("Update folder doesn't exist " + _appFolderInfo.GetUpdatePackageFolder());
|
||||
}
|
||||
}
|
||||
|
||||
public void Start(string installationFolder, int processId)
|
||||
@@ -157,7 +163,6 @@ namespace NzbDrone.Update.UpdateEngine
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user