Skip to content

Commit 403524f

Browse files
committed
Removed null checks that can't be hit in practical terms.
1 parent b6a576c commit 403524f

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

src/Autofac.Extras.DynamicProxy/RegistrationExtensions.cs

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -304,16 +304,6 @@ private static void AddInterceptorServicesToMetadata<TLimit, TActivatorData, TSt
304304

305305
private static IEnumerable<Service> GetInterceptorServices(IComponentRegistration registration, Type implType)
306306
{
307-
if (registration == null)
308-
{
309-
throw new ArgumentNullException(nameof(registration));
310-
}
311-
312-
if (implType == null)
313-
{
314-
throw new ArgumentNullException(nameof(implType));
315-
}
316-
317307
var result = EmptyServices;
318308

319309
if (registration.Metadata.TryGetValue(InterceptorsPropertyName, out object? services) && services is IEnumerable<Service> existingPropertyServices)

0 commit comments

Comments
 (0)