Skip to content

Commit 6e7b06f

Browse files
Merge pull request #140 from octia/cleanup-default-value-feature
Cleanup code related to the default-value feature
2 parents 973aa2a + 413f65b commit 6e7b06f

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

Assets/Reflex/Caching/MemberParamInfo.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ internal readonly struct MemberParamInfo
88
public readonly bool HasDefaultValue;
99
public readonly object DefaultValue;
1010

11-
public MemberParamInfo(Type parameterType, bool hasDefaultValue, object defaultValue) : this()
11+
public MemberParamInfo(Type parameterType, bool hasDefaultValue, object defaultValue)
1212
{
1313
ParameterType = parameterType;
1414
HasDefaultValue = hasDefaultValue;

Assets/Reflex/Injectors/ConstructorInjector.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,15 +27,15 @@ public static object Construct(Type concrete, Container container)
2727
{
2828
arguments[i] = container.Resolve(constructorParameters[i].ParameterType);
2929
}
30-
catch (UnknownContractException exception)
30+
catch (UnknownContractException)
3131
{
3232
if (constructorParameters[i].HasDefaultValue)
3333
{
3434
arguments[i] = constructorParameters[i].DefaultValue;
3535
}
3636
else
3737
{
38-
throw exception;
38+
throw;
3939
}
4040
}
4141
}

0 commit comments

Comments
 (0)