Cleanup old Radarr parsing library conditional

pull/1597/head
Qstick 1 year ago
parent 1608095345
commit 18651d8be1

@ -2,9 +2,7 @@
using System.Collections.Generic; using System.Collections.Generic;
using System.Linq; using System.Linq;
using System.Text; using System.Text;
#if !LIBRARY
using NzbDrone.Common.EnsureThat; using NzbDrone.Common.EnsureThat;
#endif
namespace NzbDrone.Core namespace NzbDrone.Core
{ {
@ -12,9 +10,8 @@ namespace NzbDrone.Core
{ {
public static string WithDefault(this string actual, object defaultValue) public static string WithDefault(this string actual, object defaultValue)
{ {
#if !LIBRARY
Ensure.That(defaultValue, () => defaultValue).IsNotNull(); Ensure.That(defaultValue, () => defaultValue).IsNotNull();
#endif
if (string.IsNullOrWhiteSpace(actual)) if (string.IsNullOrWhiteSpace(actual))
{ {
return defaultValue.ToString(); return defaultValue.ToString();

Loading…
Cancel
Save