diff --git a/src/NzbDrone.Api/Mapping/ValueInjectorExtensions.cs b/src/NzbDrone.Api/Mapping/ValueInjectorExtensions.cs index d8ac662f5..3adee94c2 100644 --- a/src/NzbDrone.Api/Mapping/ValueInjectorExtensions.cs +++ b/src/NzbDrone.Api/Mapping/ValueInjectorExtensions.cs @@ -19,7 +19,6 @@ public static class ValueInjectorExtensions source.GetType().GetGenericTypeDefinition() != null && source.GetType().GetGenericTypeDefinition().GetInterfaces().Contains(typeof(IEnumerable))) { - var result = new TTarget(); var listSubType = targetType.GetGenericArguments()[0]; diff --git a/src/NzbDrone.Common/EnsureThat/EnsureStringExtensions.cs b/src/NzbDrone.Common/EnsureThat/EnsureStringExtensions.cs index 411a31f41..78435ee00 100644 --- a/src/NzbDrone.Common/EnsureThat/EnsureStringExtensions.cs +++ b/src/NzbDrone.Common/EnsureThat/EnsureStringExtensions.cs @@ -92,7 +92,6 @@ public static Param IsRelativePath(this Param param) throw ExceptionFactory.CreateForParamValidation(param.Name, string.Format("value [{0}] is not a valid relative path. relative paths can not start with \\", param.Value)); } - return param; }