mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-17 17:14:18 +02:00
Adding support for exception instances in Services.NzbDrone
This commit is contained in:
@@ -6,15 +6,15 @@ namespace NzbDrone.Common
|
||||
public static class StringExtention
|
||||
{
|
||||
|
||||
public static object NullCheck(this object target)
|
||||
public static object NullSafe(this object target)
|
||||
{
|
||||
if (target != null) return target;
|
||||
return "[NULL]";
|
||||
}
|
||||
|
||||
public static string NullCheck(this string target)
|
||||
public static string NullSafe(this string target)
|
||||
{
|
||||
return ((object)target).NullCheck().ToString();
|
||||
return ((object)target).NullSafe().ToString();
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user