mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-20 05:23:31 -07:00
Adding support for exception instances in Services.NzbDrone
This commit is contained in:
parent
917ae0f999
commit
98faca17ee
14 changed files with 342 additions and 11 deletions
|
@ -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();
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue