cleaned up handling of Unknown quality type.

This commit is contained in:
Keivan Beigi 2013-05-30 18:43:13 -07:00
parent 3c53e6009d
commit c1bbd0bd5d
5 changed files with 9 additions and 15 deletions

View file

@ -28,14 +28,14 @@ namespace NzbDrone.Api.Mapping
foreach (var sourceItem in (IEnumerable)source)
{
var e = Activator.CreateInstance(listSubType).InjectFrom(sourceItem);
var e = Activator.CreateInstance(listSubType).InjectFrom<CloneInjection>(sourceItem);
addMethod.Invoke(result, new[] { e });
}
return result;
}
return (TTarget)new TTarget().InjectFrom(source);
return (TTarget)new TTarget().InjectFrom<CloneInjection>(source);
}
}
}