Skip to content

Commit

Permalink
fix:retrievable is not necessary
Browse files Browse the repository at this point in the history
  • Loading branch information
labbbirder committed Sep 28, 2023
1 parent 381a466 commit 53bdd07
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions Runtime/ClassicalUsages/SimpleDIAttribute.cs
Original file line number Diff line number Diff line change
Expand Up @@ -99,10 +99,6 @@ public override IEnumerable<InjectionInfo> ProvideInjections()
var memberType = GetMemberType(targetMember);
var isStatic = IsStatic(targetMember);
var canWrite = CanWrite(targetMember);
if (!Retriever.IsTypeRetrievable(memberType))
{
throw new Exception($"cannot inject {targetMember} on type {targetType}, type {memberType} is not retrievable");
}
if (isStatic)
{
if (canWrite)
Expand Down

0 comments on commit 53bdd07

Please sign in to comment.