mirror of
https://github.com/mbierlee/poodinis.git
synced 2025-01-18 13:32:50 +01:00
Transpose static if to avoid generating dead code.
This commit is contained in:
parent
6255292069
commit
4e27adc96b
1 changed files with 2 additions and 2 deletions
|
@ -175,8 +175,8 @@ synchronized class DependencyContainer {
|
|||
auto newRegistration = new AutowiredRegistration!ConcreteType(registeredType, this);
|
||||
newRegistration.singleInstance();
|
||||
|
||||
if (!hasOption(options, persistentRegistrationOptions, RegistrationOption.doNotAddConcreteTypeRegistration)) {
|
||||
static if (!is(SuperType == ConcreteType)) {
|
||||
static if (!is(SuperType == ConcreteType)) {
|
||||
if (!hasOption(options, persistentRegistrationOptions, RegistrationOption.doNotAddConcreteTypeRegistration)) {
|
||||
auto concreteTypeRegistration = register!ConcreteType;
|
||||
concreteTypeRegistration.linkTo(newRegistration);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue