Skip to content

Commit

Permalink
Remove unreachable code
Browse files Browse the repository at this point in the history
  • Loading branch information
Tim-Maes committed Oct 10, 2023
1 parent b8679f5 commit 53baa6b
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/Bindicate/Configuration/ServiceCollectionExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,6 @@ public static IServiceCollection AddBindicate(this IServiceCollection services,
case Lifetime.TryAddTransient:
RegisterService(serviceType, type, (s, t) => services.TryAddTransient(s, t));
break;
default:
throw new ArgumentException($"Unsupported lifetime: {attr.Lifetime}");
}
}
else
Expand Down

0 comments on commit 53baa6b

Please sign in to comment.