mirror of
https://github.com/Readarr/Readarr.git
synced 2026-04-23 22:25:09 -04:00
Replaced built-in valuetypes with language keywords.
This commit is contained in:
@@ -44,7 +44,7 @@ namespace NzbDrone.Core.MediaFiles
|
||||
_logger.Info("Attempting to send '{0}' to recycling bin", path);
|
||||
var recyclingBin = _configService.RecycleBin;
|
||||
|
||||
if (String.IsNullOrWhiteSpace(recyclingBin))
|
||||
if (string.IsNullOrWhiteSpace(recyclingBin))
|
||||
{
|
||||
_logger.Info("Recycling Bin has not been configured, deleting permanently. {0}", path);
|
||||
_diskProvider.DeleteFolder(path, true);
|
||||
@@ -78,7 +78,7 @@ namespace NzbDrone.Core.MediaFiles
|
||||
_logger.Debug("Attempting to send '{0}' to recycling bin", path);
|
||||
var recyclingBin = _configService.RecycleBin;
|
||||
|
||||
if (String.IsNullOrWhiteSpace(recyclingBin))
|
||||
if (string.IsNullOrWhiteSpace(recyclingBin))
|
||||
{
|
||||
_logger.Info("Recycling Bin has not been configured, deleting permanently. {0}", path);
|
||||
|
||||
@@ -117,7 +117,7 @@ namespace NzbDrone.Core.MediaFiles
|
||||
}
|
||||
catch (IOException e)
|
||||
{
|
||||
var message = String.Format("Unable to move '{0}' to the recycling bin: '{1}'", path, destination);
|
||||
var message = string.Format("Unable to move '{0}' to the recycling bin: '{1}'", path, destination);
|
||||
_logger.ErrorException(message, e);
|
||||
throw;
|
||||
}
|
||||
@@ -134,7 +134,7 @@ namespace NzbDrone.Core.MediaFiles
|
||||
|
||||
public void Empty()
|
||||
{
|
||||
if (String.IsNullOrWhiteSpace(_configService.RecycleBin))
|
||||
if (string.IsNullOrWhiteSpace(_configService.RecycleBin))
|
||||
{
|
||||
_logger.Info("Recycle Bin has not been configured, cannot empty.");
|
||||
return;
|
||||
@@ -157,7 +157,7 @@ namespace NzbDrone.Core.MediaFiles
|
||||
|
||||
public void Cleanup()
|
||||
{
|
||||
if (String.IsNullOrWhiteSpace(_configService.RecycleBin))
|
||||
if (string.IsNullOrWhiteSpace(_configService.RecycleBin))
|
||||
{
|
||||
_logger.Info("Recycle Bin has not been configured, cannot cleanup.");
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user