mirror of
https://github.com/Readarr/Readarr.git
synced 2026-04-18 21:34:28 -04: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